<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : printDocument fails</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : printDocument fails]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 19 May 2026 11:19:13 +0000</pubDate>
  <lastBuildDate>Fri, 15 May 2009 02:35:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1068</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[printDocument fails : Hi MrPopUp.Yes I know printername...]]></title>
   <link>http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5080.html#5080</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=107">dsola</a><br /><strong>Subject:</strong> 1068<br /><strong>Posted:</strong> 15 May 09 at 2:35AM<br /><br />Hi MrPopUp.<br><br>Yes I know printername on which I need to print so I check just target printer.<br><br>Delphi code:<br>procedure TBatchPrint.DoWork(........);<br>var<br>&nbsp; xx: integer;<br>&nbsp; printerName: string;<br>begin<br><br>&nbsp; printerName := Printer.Printers&#091;FPrinterIndex&#093;; <br>&nbsp; // check if printer is spooling&nbsp; 500 times (500*.5sec= cca 4min) to avoid inifinite loop<br>&nbsp; for xx := 1 to 500 do begin<br>&nbsp;&nbsp;&nbsp; if not Printer.Printing then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Break;<br>&nbsp;&nbsp;&nbsp; Sleep(500);<br>&nbsp; end;<br><br>&nbsp; PrintDocument(.....);<br>end;]]>
   </description>
   <pubDate>Fri, 15 May 2009 02:35:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5080.html#5080</guid>
  </item> 
  <item>
   <title><![CDATA[printDocument fails : Good morning Dsola, Thanks for...]]></title>
   <link>http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5075.html#5075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 1068<br /><strong>Posted:</strong> 14 May 09 at 3:08PM<br /><br />Good morning Dsola,<DIV>Thanks for the comment. I would love to see the code/mechanism used to check the printers. I do have well over 100 printers on the server! I take it you just check the target printer?</DIV><DIV>Thank you.</DIV><DIV>Mrpopup</DIV><DIV><img src="http://www.quickpdf.org/forum/smileys/smiley1.gif" height="17" width="17" border="0" align="absmiddle" alt="Smile" /></DIV>]]>
   </description>
   <pubDate>Thu, 14 May 2009 15:08:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5075.html#5075</guid>
  </item> 
  <item>
   <title><![CDATA[printDocument fails : We found delphi workaround.You...]]></title>
   <link>http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5070.html#5070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=107">dsola</a><br /><strong>Subject:</strong> 1068<br /><strong>Posted:</strong> 14 May 09 at 8:09AM<br /><br />We found delphi workaround.<br><br>You can't print while printer is in "spooling mode" so before we sent another PDF to print we&nbsp; check if printer is out of spooling mode.<br><br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 14 May 2009 08:09:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5070.html#5070</guid>
  </item> 
  <item>
   <title><![CDATA[printDocument fails :  We have same problem with delphi...]]></title>
   <link>http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5069.html#5069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=107">dsola</a><br /><strong>Subject:</strong> 1068<br /><strong>Posted:</strong> 14 May 09 at 7:19AM<br /><br />We have same problem with delphi version.<br><br>Still have no solution&nbsp; <img src="http://www.quickpdf.org/forum/smileys/smiley19.gif" border="0" align="absmiddle" alt="Cry" /><br><br><span style="font-size:10px"><br /><br />Edited by dsola - 14 May 09 at 7:22AM</span>]]>
   </description>
   <pubDate>Thu, 14 May 2009 07:19:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5069.html#5069</guid>
  </item> 
  <item>
   <title><![CDATA[printDocument fails : Good morning forum members,   Details: Version:...]]></title>
   <link>http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5003.html#5003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 1068<br /><strong>Posted:</strong> 24 Apr 09 at 6:30PM<br /><br />Good morning forum members, <DIV><strong></strong>&nbsp;</DIV><DIV><strong>Details:</strong></DIV><DIV><EM>Version</EM>: 5.22 &amp; 7.12</DIV><DIV><EM>Style</EM>:&nbsp;&nbsp;&nbsp;&nbsp; AxtiveX</DIV><DIV><EM>Application</EM>: Jade (<a href="http://www.jadeworld.com/" target="_blank">www.jadeworld.com</A>) based - similar to VB</DIV><DIV>&nbsp;</DIV><DIV>I have a print server application that detects pdf files that need to be printed. It validates the file and then uses the printDocument method to launch the actual printing to the specified printer.</DIV><DIV>&nbsp;</DIV><DIV>The process works successfully if in a single ' locate pdfs run' only one pdf file is located or if the multiple files are very small (1/4 pages).</DIV><DIV>&nbsp;</DIV><DIV>However if a number of files are located and some are large (20 to&nbsp;600 pages) the seciond and subsequent printDocument commends fails with error -2147418113 (null object reference).</DIV><DIV>&nbsp;</DIV><DIV>A seperate QuickPDF object instance is created for each printDocument. </DIV><DIV>&nbsp;</DIV><DIV>To me it appears that while the printDocument call returns to the calling method the AcitveX/library is still in fact still busy sending the file to the print spooler.&nbsp; As a result the next printDocument causes a failure.&nbsp; This implies that the library is neither thread safe nor actually capabile of multi-user activity.</DIV><DIV>&nbsp;</DIV><DIV>For large files, if I put in a 2 minute delay prior to issuing the next printDocument all is well however this is not a satisfactory solution. (if the network is busy 2 minutes may be insufficient etc)</DIV><DIV>&nbsp;</DIV><DIV>Does anyone have any suggestions please.</DIV><DIV>&nbsp;</DIV><DIV>Thank you.</DIV><DIV>&nbsp;</DIV><DIV>Charles</DIV>]]>
   </description>
   <pubDate>Fri, 24 Apr 2009 18:30:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/printdocument-fails_topic1068_post5003.html#5003</guid>
  </item> 
 </channel>
</rss>