Using the ActiveX interface, I am able to create a separate printer instance and create my PDF file.
But after the document is created, I noticed that the default Amyuni PDF Converter printer driver has the document queued in its list.
My code calls both the driverend and setdefaultprinter functions when the pdf is created. How can I get rid of these residual copies?
[/code]
Documents remain in print queue after PDF is created
-
- Posts: 1
- Joined: Wed Jan 29 2003
Hello Michael,
When printing ends you need to set the FileNameOptions to 0 and call DriverEnd.
Why are you calling SetDefaultPrinter? This function should be called when initializing the printer to set it as default.
Are you creating a different instance of the PDF Printer for each print job? Please note that if you are installing the PDF Printer by calling PDFDriverInit, this function should be called once, when launching your application and not each time you print.
Hope this helps.
When printing ends you need to set the FileNameOptions to 0 and call DriverEnd.
Why are you calling SetDefaultPrinter? This function should be called when initializing the printer to set it as default.
Are you creating a different instance of the PDF Printer for each print job? Please note that if you are installing the PDF Printer by calling PDFDriverInit, this function should be called once, when launching your application and not each time you print.
Hope this helps.