X
xdzgor
Hi
we have an intranet site with a print function. We generate a "print
friendly" version of a page, and the user can click a "print" button,
which causes the javascript "print()" function to be called.
Is it possible to allow the user to select whether the printout should
be in portrait or landscape? I have seen examples on the web which set
landscape - but this appears to be a global setting (so it will always
be landscape). We would like to allow the user to check a checkbox or
something - so they can decide at runtime if they print in portrait or
landscape.
I know the windows print dialog allows the selection og portrait or
landscape - but we'd like the user to be able to make this selection
on the web page.
BTW, as this is an intranet site, the customer has decided the browser
will always be internet explorer 6 or 7 (if this makes the task easier
or harder I have no idea).
Thanks,
Peter
we have an intranet site with a print function. We generate a "print
friendly" version of a page, and the user can click a "print" button,
which causes the javascript "print()" function to be called.
Is it possible to allow the user to select whether the printout should
be in portrait or landscape? I have seen examples on the web which set
landscape - but this appears to be a global setting (so it will always
be landscape). We would like to allow the user to check a checkbox or
something - so they can decide at runtime if they print in portrait or
landscape.
I know the windows print dialog allows the selection og portrait or
landscape - but we'd like the user to be able to make this selection
on the web page.
BTW, as this is an intranet site, the customer has decided the browser
will always be internet explorer 6 or 7 (if this makes the task easier
or harder I have no idea).
Thanks,
Peter