<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=748193016-11052001>Does
it work with Netscape?</SPAN></FONT></DIV>
<DIV> </DIV>
<P><FONT size=2>Bob Filipiak (Contractor)<BR>MCP </FONT></P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Victor Papp
[mailto:vpapp@bigfoot.com]<BR><B>Sent:</B> Friday, May 11, 2001 10:45
AM<BR><B>To:</B> javascript@latech.edu<BR><B>Subject:</B> Re: [Javascript]
Opening and printing PDF file from a new window<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Yes,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>actually, I use the onclick event to
execute these:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>1) open a new window</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>2) write HTML there using
window.document.write</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>3) flush
(window.document.close)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>the HTML I write there
contains</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>onload="window.print()" in the body
tag</FONT></DIV>
<DIV><FONT face=Arial size=2>embed tag for the PDF file.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>It a bit messy using only javascript, so I
used the capabilities of ASP and simplified the process:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>1) using the < a > tag I link to the
print.asp file.</FONT></DIV>
<DIV><FONT face=Arial size=2>2) there, I build this mentioned above HTML
code</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Arial CYR" size=2>Hope this helps.</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>Victor
Papp</FONT></DIV></BLOCKQUOTE></BODY></HTML>