Article View: adobe.reader
Article #7240printing automatic
From: nirit
Date: Sun, 25 Feb 2007 09:59
Date: Sun, 25 Feb 2007 09:59
50 lines
1737 bytes
1737 bytes
Hello
I would like to open a PDF file, print the file and close it automatic
I succeded opening the file and close it, but not to print it
Is their any idea how to print the file automatic? Because this script print a white page and not the file.
html>
head>
title/>
/head>
object ID='WebBrowser1' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-' 340A-11D0-A96B-00C04FD705A2' VIEWASTEXT> /object>
script language="javascript">
function closeTheWindow()
{
var vi = <%=Request.QueryString("vi")%>
if (vi==0)
{
window.opener=top;
window.close();
}
}
function onLoad()
{
window.setTimeout('printNow();',100);
}
function printNow()
{
parent.mainFrame.focus();
WebBrowser1.ExecWB(6,-1);
WebBrowser1.outerPDF = "";
}
/SCRIPT>
body onload="onLoad();">
form name="PrintPDF">
iframe frameborder="no" border="1" framespacing="0"
id="mainFrame" name="mainFrame" width="750" heigth="1024"
frameborder="1" src="http://Path/pdf/Pdfname.pdf"/>
/frameset>
/form>
/body>
/html>
Thank you
Nirit
Technical Details
Message-ID:
<3bc33fb3.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10273d,8e42310a74b64dbc,start X-Google-Attributes: gid10273d,public X-Google-Language: ENGLISH,ASCII-7-bit From: nirit@adobeforums.com Newsgroups: adobe.reader Subject: printing automatic Message-ID: <3bc33fb3.-1@webcrossing.la2eafNXanI> Date: Sun, 25 Feb 2007 01:59:10 -0800 Lines: 53 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing