Printing to hardware printer

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
EC
Posts: 2
Joined: Thu Aug 12 2004
Location: UK

Printing to hardware printer

Post by EC »

Occassionally one of our users gets an error where instead of printing a Word document to the PDF converter it tries to print it to a hardware printer (which seems to cause the printer a lot of problems). This occurs on both administration machines when using PDFDriverInit, and on non-admin machines where we've run install.exe and call DriverInit instead (this is version 2.10 of PDF Converter).

His system is fairly standard (Win XP Pro, Office 2003) although he does have a bit of software called Spindle installed which can output to PDFs, so perhaps there is a conflict there?

As I said, this only happens occassionally, the rest of the time it works fine. I'm not sure if anyone else has encountered a similar error and managed to find a solution?

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

From the above description i can't be sure what is happening on your customer's site, maybe other users who faced a similar issue can give more information.

I can however tell you what could typically cause a similar situation:

1 - If your application is trying to print to the Default printer of the system and the physical printer is set as default instead of the PDF Printer.

2 - If your application prints to a sepcific printer set from inside the application and at a give time the physical printer is set from the application instead of the PDF Printer.

If you can reproduce this issue you may debug your application to see what is happening precisely when the application prints to the physical printer.

Hope this helps.
EC
Posts: 2
Joined: Thu Aug 12 2004
Location: UK

Post by EC »

The application does print to the default printer, but we're setting that using pdfPrinter.SetDefaultPrinter in the code. The application only calls that once, should it do it more often (like with pdfPrinter.EnablePrinter)?

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

No, it is not advisable to call SetDefaultPrinter() more often because calling SetDefaultPrinter is resource consuming.

Ideally, It is advisable to try to print to a specific printer on the system (regardless if it is the default one or not) using the available functions in your application without using SeDefaultPrinter.

Hope this helps.
Post Reply