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.

[515 byte] By [gurucharan_csa] at [2007-10-2 15:30:52]
# 1

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

jain_vishal_aa at 2007-7-13 14:56:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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.

gurucharan_csa at 2007-7-13 14:56:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
i think it can be done on html or javascript(i have forgotten it already). i saw an application from a vendor(it is not free) that does that. but i forgot the site. they use their own tags(like custom tags) and like API in java. try to search it in google
jgalacambraa at 2007-7-13 14:56:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...