printing in landscape
Hi ,
I've got some problem with priting a jsp page(html) in landscape orientation. How to print a html document in landscape. I 've tried with javax.print package but problem is that it recognizes the printer for doc flavour.INPUT_STREAM.GIF. But it is not recognizing text/html.
I've also tried with CSS with writing-mode: tb-rl; but no use. I have two tables in my page. with that css trick, they are overlapping.
pls provide some solution.
thanks and regards,
Gurucharan.
Hi
Is it possible for you to use javascript.
<HTML>
<HEAD>
<SCRIPT>
</SCRIPT>
</HEAD>
<body>
<input type="button" onclick="javascript:print()">
</body>
</HTML>
During invocation of printer dialog box select the landscape mode.
HTH
VJ
Hi Vishal,
Thanks for your response. But the requirement don't want the user explicitly to change page orientation to landscape. can we do it programatically either in java or html or css.
I've tried with css but it is not coming with multiple tables with more number of rows.
thanks and regards,
Gurucharan.