You can print a pdf automatically like this. Make sure you have a html
where you embed the pdf into, using the following tag (in this case you will
not see the object, but if you change the width and height it is possible,
this is using activeX, so it will probably only work on IE4 and up (if you
have acrobat reader installed):
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
height="0" id="objPdf" width="0"></object>
Now you have to address this in a javascript function:
objPdf.src = ServerURL + "?" + lsParameters;
if(confirm("Do you want to print the pdf document?")) {
objPdf.printAll();
}
I hope this helps!!!
Greetings Manuel
>From: Ra�l Carazo <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "FOP" <[EMAIL PROTECTED]>
>Subject: Printing a PDF Report
>Date: Thu, 10 Jan 2002 11:38:03 +0100
>
> I have a pdf report on a frame of a jsp-page, and I want to print it
>BUT calling from the jsp where the report is, not waiting the user call
>it...
>
> Any idea...?
>
> Thx a lot
>
> Salve
>
>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>Siete buoni, se potete
_________________________________________________________________
Download MSN Explorer gratis van http://explorer.msn.nl/intl.asp.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]