<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=koi8-r" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Yes,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>actually, I use the onclick event to execute 
these:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>1) open&nbsp; 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>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>the HTML I write there contains</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>It a bit messy using only javascript, so I 
used the capabilities of&nbsp; ASP and simplified the process:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>1) using the &lt; a &gt; 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>&nbsp;</DIV>
<DIV><FONT face="Arial CYR" size=2>Hope this helps.</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>Victor Papp</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A href="mailto:filipiab@atsc.army.mil" title=filipiab@atsc.army.mil>Filipiak, 
  Bob (Contractor)</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  href="mailto:'javascript@LaTech.edu'" 
  title=javascript@latech.edu>'javascript@LaTech.edu'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 11, 2001 5:07 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] Opening and 
  printing PDF file from a new window</DIV>
  <DIV><BR></DIV>
  <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=904570714-11052001>Care 
  to share what you found out?</SPAN></FONT></DIV>
  <DIV>&nbsp;</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 [<A 
    href="mailto:vpapp@bigfoot.com">mailto:vpapp@bigfoot.com</A>]<BR><B>Sent:</B> 
    Friday, May 11, 2001 8:53 AM<BR><B>To:</B> <A 
    href="mailto:javascript@latech.edu">javascript@latech.edu</A><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>Already found out how.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face="Arial CYR" size=2>Thanks.</FONT></DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
      <A href="mailto:vpapp@bigfoot.com" title=vpapp@bigfoot.com>Victor Papp</A> 
      </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A 
      href="mailto:javascript@latech.edu" 
      title=javascript@latech.edu>javascript@latech.edu</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 10, 2001 10:01 
      PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] Opening and 
      printing PDF file from a new window</DIV>
      <DIV><BR></DIV>
      <DIV><FONT face=Arial size=2>
      <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face="Arial CYR" size=2>I want to use this code</FONT></DIV>
      <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
      <DIV><FONT face="Arial CYR" size=2>&nbsp;&lt; a href="somefile.pdf" 
      target="_blank"&gt;click here&lt; / a&gt;</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face="Arial CYR" size=2>My question: is it possible to have 
      opened the print dialog for printing&nbsp;this file 
      automatically?</FONT></DIV>
      <DIV><FONT face="Arial CYR" size=2>Like we use it on the body 
      tag:</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face="Arial CYR" size=2>&lt; body onload="window.print()" 
      &gt;</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
      <DIV>&nbsp;</DIV>
      <DIV><FONT face="Arial CYR" size=2>Victor 
    Papp</FONT></DIV></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>