I've recently downloaded the demo developer of the pdf converter to evaluate, but cannot get started with it.
This is the (Navision) code I am using:
vPDFPrinterCntrl.DriverInit('Amyuni PDF Converter');
vPDFPrinterCntrl.EnablePrinter('Evaluation Version Developer',vKey);
vPDFPrinterCntrl.DefaultDirectory('c:\temp');
vPDFPrinterCntrl.DefaultFileName('c:\temp\amyuniop.pdf');
vPDFPrinterCntrl.FileNameOptions:= 1+2;
vPDFPrinterCntrl.SetDefaultPrinter;
// code to run report here
vPDFPrinterCntrl.RestoreDefaultPrinter;
Just after the printing in progress dialog pops up I get the error message 'Printer not activated, error code -22'.
In the code above vKey is a text string holding the key as obtained from the Install.ini file. The printer name is exactly as it is shown in the windows control panel. Am I missing something?
Thanks.