[Javascript] Opening and printing PDF file from a new window

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Fri May 11 11:30:16 CDT 2001


Does it work with Netscape?
 

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Victor Papp [mailto:vpapp at bigfoot.com]
Sent: Friday, May 11, 2001 10:45 AM
To: javascript at latech.edu
Subject: Re: [Javascript] Opening and printing PDF file from a new window


Yes,
 
actually, I use the onclick event to execute these:
 
1) open  a new window
2) write HTML there using window.document.write
3) flush (window.document.close)
 
the HTML I write there contains
 
onload="window.print()" in the body tag
embed tag for the PDF file.
 
It a bit messy using only javascript, so I used the capabilities of  ASP and
simplified the process:
 
1) using the < a > tag I link to the print.asp file.
2) there, I build this mentioned above HTML code
 
Hope this helps.
Victor Papp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010511/6861a4c0/attachment.htm>


More information about the Javascript mailing list