StartDocPrinter error

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
hhickey
Posts: 1
Joined: Wed Sep 28 2005

StartDocPrinter error

Post by hhickey »

I am using the single user evaluation 2.5 version. Below is my code example:

PDFCreator.DriverInit("Amyuni PDF Converter");
PDFCreator.EnablePrinter("Evaluation Version", strLicCode);
PDFCreator.DefaultDirectory("C:\temp");
PDFCreator.DefaultFileName("C:\temp\testhch.pdf");
PDFCreator.FileNameOptionsEx(1 + 2);
PDFCreator.SetDefaultPrinter();

//Code to print report
rrnMembersInvoice.run();

When I run the code I get the following error: "A StartDocPrinter call was not issued". Does anyone have any ideas?

I can select the printer through the printer dialog box and input a filename but as soon as I incorporate the activex so that there is no user input needed - I get this error.

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

Post by Joan »

Hello,

You need to call EnablePrinter right before the printing command too.

Hope this helps.
Post Reply