Print Page | Close Window

Problem printing to two printers simultaneously.

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3406
Printed Date: 04 Apr 26 at 3:11PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem printing to two printers simultaneously.
Posted By: yoyodyn
Subject: Problem printing to two printers simultaneously.
Date Posted: 11 Nov 16 at 6:10PM
Our application is printing to two printers.  One is for documents, and one is for labels that are supplied to us in PDF format (thermal label printer).

For the document printer we are using NewCustomPrinter, SetupCustomPrinter, and PrintOptions calls before calling PrintDocument passing in the name of the printer returned from NewCustomerPrinter.

For the label printer, we are calling PrintOptions, and PrintDocument passing the name (assigned in Windows) of the label printer.

Occasionally we are seeing the document and/or the label print to both printers at the same time.  Is there some kind of reset or clear that we need to be calling when switching printers?  



Replies:
Posted By: Ingo
Date Posted: 13 Nov 16 at 8:38PM
i think it should be only necessary to check if one printjob is finished before the next one starts?



-------------
Cheers,
Ingo



Posted By: yoyodyn
Date Posted: 14 Nov 16 at 4:19PM
We resolved this by instantiating another copy of the Library for each printer.

This is not a multi-threaded application, so the print function was returning before the next one started.  The document is being removed from the library before the next one starts printing.  And the printer is being specified by name.  So I'm not sure why the jobs would go to the wrong printer.





Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk