Johnny101
May 4th, 2004, 09:36 AM
Hello everyone...
Here's an interesting little question: How can I force the page to print in landscape mode? Javascript or CSS are the only two methods i'm allowed to employ.
I've seen several websites claim CSS2 properties do it - but testing in IE 6 w/ latest patches, has proved fruitless. The closest i've gotten is in using the media and @page rules of CSS2 to apply a different style sheet when printed than when viewed. I was able to change the text color - but the properties to set the print mode to landscape seemed completely ignored.
BTW - i suppose there is one other method - and that would be to generate a PDF document with it's settings in landscape - but we can't buy any fancy PDF generators. We have a product that acts as a virtual printer that places any "printed" content into PDF format. So - again, i guess the question is - how to set printer orientation or force the printer to rotate the page based on content?
This is somewhat of an urgent issue, so ANY and ALL suggestions welcome!
Thank you!
john
Here's an interesting little question: How can I force the page to print in landscape mode? Javascript or CSS are the only two methods i'm allowed to employ.
I've seen several websites claim CSS2 properties do it - but testing in IE 6 w/ latest patches, has proved fruitless. The closest i've gotten is in using the media and @page rules of CSS2 to apply a different style sheet when printed than when viewed. I was able to change the text color - but the properties to set the print mode to landscape seemed completely ignored.
BTW - i suppose there is one other method - and that would be to generate a PDF document with it's settings in landscape - but we can't buy any fancy PDF generators. We have a product that acts as a virtual printer that places any "printed" content into PDF format. So - again, i guess the question is - how to set printer orientation or force the printer to rotate the page based on content?
This is somewhat of an urgent issue, so ANY and ALL suggestions welcome!
Thank you!
john