Printer created, but no output

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
arch
Posts: 3
Joined: Wed Aug 11 2004
Location: Belmont, NC USA

Printer created, but no output

Post by arch »

Windows Server 2003, Magic eDeveloper.

I have installed the Developer trial and followed the instructions in Common Driver Interface 210.pdf using PDFDriverInit.

When I run my print program, the printer is created in the Windows dialog and disappears after some time, as it should. However, no pdf file is output and no error message is generated. When I change the output to Console in my program, the output appears as it should.

The other commands I am using are:
SetDefaultFilename
SetFileNameOptions
EnablePrinter (in print program)

Any ideas on what could be wrong?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Are you setting FileNameOptions to 3 (1 + 2 = NoPrompt + UseFileName)?

Are you setting DefaultFileName to the full path of the pdf file that will be generated?

Example:
SetDefaultFileName (pdf, "c:\Temp\test.pdf") // where Temp is a valid directory on your system.

Thanks.
arch
Posts: 3
Joined: Wed Aug 11 2004
Location: Belmont, NC USA

Post by arch »

Are you setting FileNameOptions to 3 (1 + 2 = NoPrompt + UseFileName)?
YES - I am using 3 for options.

Are you setting DefaultFileName to the full path of the pdf file that will be generated?
YES - C:\Test.pdf

Any other thoughts?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

are you calling EnablePrinter right before each printout?

If you are, than please contact support@amyuni.com with further details about this issue and maybe a copy of your code so we can trace this.
arch
Posts: 3
Joined: Wed Aug 11 2004
Location: Belmont, NC USA

Post by arch »

Yes. At the beginning of my application I am calling PDFDriverInit with a printer name of 'IC_PDF' and it is returning a positive integer as well as creating the printer in the Windows/Printer dialog.

Immediately before printing, I am calling a subroutine that executes three calls:
SetDefaultFileName (C:\test.pdf) - return=1
SetFileNameOptions (3) - return=1
EnablePrinter - return=1

Then I print. If output is directed to a file, a file is generated. If I output to 'IC_PDF' nothing is generated.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

What is happening with you is unexpected. In the situation you mentioned, if the output is directed to the printer you should get a pdf file.

If you are still facing problems please contact support@amyuni.com

Thanks.
Post Reply