Printing fails in W2K server

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
PixelWare
Posts: 3
Joined: Fri Jun 23 2006

Printing fails in W2K server

Post by PixelWare »

Hello,

we have a program that convert Word documents to pdf with AMYUNI PDF Converter 2.50.

We are using MSWord, open a document, modify the document, initialize the printer with a developer license,
put the driver printer to default, and print the Word document using MSWord.

Well, in Win 2000 server, using .NET wrapper dll, we cannot generate a pdf, because set driver printer to default fails.

(Really doesn´t fail. We can see the printer sets as default, but MSWord uses another printer).

Also, we configured the driver port to "LPT1" and changed to "Print to File". Nothing change.

In Win 2000 Professional and Xp works fine.

Any idea?

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

Post by Joan »

So maybe Word 2000 is not printing to the default printer, it is printing to a specific printer instead.

Instead of setting the PDF Printer as default you can use:
WordApp.ActivePrinter = PrinterName
To set the active printer for the application that is printing.

Hope this helps.
PixelWare
Posts: 3
Joined: Fri Jun 23 2006

Post by PixelWare »

I put

WordApp.ActivePrinter = PrinterName

and Word printed in my AMYUNI printer.

In this machine, the method SetDefaultPrinter don´t work.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

SetDefaultPrinter() does work in general, maybe it was taking time on this 2K machine.
Post Reply