<?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 : Wait for print to complete</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 : Wait for print to complete]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:05:45 +0000</pubDate>
  <lastBuildDate>Mon, 10 Aug 2015 21:55:15 +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=3157</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[Wait for print to complete : Thanks Ingo,StatusCommand 200...]]></title>
   <link>http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12644.html#12644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2765">Natalia</a><br /><strong>Subject:</strong> 3157<br /><strong>Posted:</strong> 10 Aug 15 at 9:55PM<br /><br />Thanks Ingo,<br>StatusCommand 200 seems to work if the print job succeeds.<br>Do you know what would happen if the job fails after PrintDocument() function exits?<br><br>Regarding the reason, our server does additional processing on print job at the end of the printing, we need to wait till printing is complete. Ideally, we would listen to some signal from the library, but as far as I understood no signals are available. I'll add polling loop for now, but I'm not sure how it would affect the performance. It should be more efficient using some signal or callback.<br>I think the common scenario is notifying user when printing is complete.<br><br>Thanks again,<br>Natalia.<br>]]>
   </description>
   <pubDate>Mon, 10 Aug 2015 21:55:15 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12644.html#12644</guid>
  </item> 
  <item>
   <title><![CDATA[Wait for print to complete : Hi Natalia,the function RequestPrinterStatus...]]></title>
   <link>http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12640.html#12640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3157<br /><strong>Posted:</strong> 10 Aug 15 at 8:41PM<br /><br />Hi Natalia,<div><br></div><div>the function RequestPrinterStatus is a bit experimental.</div><div>In the description you can read that there's no guarantee that it works with all printer and all printer driver:</div><div><a href="http://www.debenu.com/docs/pdf_library_reference/RequestPrinterStatus.php" target="_blank" rel="nofollow">http://www.debenu.com/docs/pdf_library_reference/RequestPrinterStatus.php</a></div><div>Before printing you should use RequestPrinterStatus with StatusCommand 101.</div><div>Then you should use PrintDocument.</div><div>Then&nbsp;<span style="line-height: 1.4;">you should use RequestPrinterStatus with StatusCommand 200 in a loop.</span></div><div><span style="line-height: 1.4;">If there's no returning value 1 then the print job should be finished or your printer doesn't like this function ;-)</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Cheers and welcome here,</span></div><div><span style="line-height: 1.4;">Ingo</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">BTW: What could be the sense to know (and stop the program) if a printout is finished? &nbsp;;-)</span></div><div><span style="line-height: 1.4;"><br></span></div>]]>
   </description>
   <pubDate>Mon, 10 Aug 2015 20:41:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12640.html#12640</guid>
  </item> 
  <item>
   <title><![CDATA[Wait for print to complete : Hello, We noticed that PrintDocument()...]]></title>
   <link>http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12639.html#12639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2765">Natalia</a><br /><strong>Subject:</strong> 3157<br /><strong>Posted:</strong> 10 Aug 15 at 5:01PM<br /><br />Hello, <br><br>We noticed that <i>PrintDocument()</i> method returns before print operation is complete, and are looking for the correct way to wait for print to finish.<br><i>RequestPrinterStatus(300)</i> returns 8208 during print, and 0 when after print succeeds.<br>Where could we find the description of possible values returned by RequestPrinterStatus? <br>What is 8208 and what values would be returned if error occurs?<br><br>Thanks,<br>Natalia.<br>]]>
   </description>
   <pubDate>Mon, 10 Aug 2015 17:01:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/wait-for-print-to-complete_topic3157_post12639.html#12639</guid>
  </item> 
 </channel>
</rss>