Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: help regarding printing from the browser


Message #1 by Prashant Vasha <prashantvasha@g...> on Fri, 8 Sep 2000 16:18:18 +0530
You cannot do it from the server (so no using Java unless you can do it in
an applet, which would likely require a signed applet).
You can of course generate the required Javascript dynamically, based on the
number of columns retrieved, before sending it to the client.

Jeroen T. Wenting
jwenting@h...

Murphy was wrong, things that can't go wrong will anyway

> -----Original Message-----
> From: Prashant Vasha [mailto:prashantvasha@g...]
> Sent: Friday, September 08, 2000 12:48
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] help regarding printing from the browser
> Importance: High
>
>
> hi,
> i am creating some reports which are dynamic pages using jsp and servlets
> and i want to give the user the option to print them
> but iwant that the orientation of the print should be dynamically set.
> that is, if the number of columns retrived are more than a particular no.,
> say 10 columns, than the printing orientation should be landscape
> and if the
> columns retrived are less than 10 then the printing orientation should be
> portrait.
> i know that u can invoke the browsers print object thru
> javascript, but then
> the end user will have to himself select the orientation of the
> paper, which
> i dont want.
> can i do this with the help of java print api's and if yes, how.
> thanx
> prashant
>
> ---
> Do you know what you want from this list? How would you provide
> programmers with the solutions they need? If you have the
> answers, and are willing to work in Birmingham (UK), then you
> could be a List Manager. Please send CVs and a covering letter to
> listsupport@p... for further information.


  Return to Index