.
The problem is

I want to print a html document in landscape orientation.

Actually we have 2 tables in a html form. The table contents are dynamic i.e we retrieved data from database using JSP and inserted into the table using HTML tags like <table>......</table>.

Please any one help me.

Thank you,
Krishna.

All you can do is prompt the user to set their browser to print the document landscape. They can do this in all the popular browsers using the File/Page Setup menu. I know you'd like to control it from the web app--to force it to print landscape. There is not any natural way to do it. There are ActiveX controls that--IF your users are willing to install--can do this for you. ActiveX controls are IE-only.

Here is another Daniweb thread on this subject.
http://www.daniweb.com/techtalkforums/post133350.html#post133350

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.