🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #7241

Re: printing automatic

#7241
From: nirit
Date: Sun, 25 Feb 2007 10:14
50 lines
1779 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.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc33fb3.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,8e42310a74b64dbc
X-Google-Attributes: gid10273d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: nirit@adobeforums.com
Newsgroups: adobe.reader
Subject: Re: printing automatic
Message-ID: <3bc33fb3.0@webcrossing.la2eafNXanI>
Date: Sun, 25 Feb 2007 02:14:53 -0800
References: <3bc33fb3.-1@webcrossing.la2eafNXanI>
Lines: 52
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!newsfeed.freenet.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing