Hello -- I have a JSP site that I have just added a reports section to. One of the reports has 14 columns of data. Printing this in portrait orientation truncates some of the columns. Therefore, I need to print this report in landscape orientation instead of portrait. How do I programmatically change the page setup to use landscape orientation and then when it is finished to reset the orientation to portrait? Is this possible? If not, are there any workarounds available? I have some users who are not familiar with using computers at all; to train them to go to File --> Page Setup --> change the orientation to landscape --> Print the document --> File --> Page Setup --> change the orientation back to portrait each time is not an acceptable solution. Any suggestions or feedback is greatly appreciated!
Mike, Thanks for your reply. I found the first link on google as well. I tried it, but I couldn't get it to work. I also found another link on google with this CSS2 reference but it said that no major browser supports this feature. I only need it to work in IE 4+ (intranet app so we can control the browser). Any other ideas?
Been there, did that. Printed to a PDF set to Landscape using the retepPDF API (now GnuJPDF). You can find it on SourceForge. Or, I think there's some commercial packages if you want fancier PDF's. PDF's are the format of choice for printing where you care about preserving fonts, layouts, and other formatting info. HTML is a guideline subject to the browser, user, and OS hims, where PDF directives are absolute.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"
Tim, Thanks for your response. Is there anyway to accomplish this without using PDF? Using PDF's is not preferred in our environment. I'd like to find an HTML/JSP solution. Can anyone verify what version of browsers support CSS2? I really appreciate your help.