Missing converted PDF file

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
Desmedt Steve
Posts: 1
Joined: Wed Aug 27 2003

Missing converted PDF file

Post by Desmedt Steve »

We downloaded the pdf converter developper and want to use it within our Application (Navision).
We tested with the following code :

CLEAR(pdfConverter);
CLEAR(recCustomer);
pdfConverter.DriverInit('Amyuni PDF Converter');
pdfConverter.EnablePrinter('Evaluation Version Developer
Pro',TextLicence);
pdfConverter.DefaultDirectory(TempDir);
pdfConverter.FileNameOptions := 1+2;
pdfConverter.DefaultFileName('C:\\CustomerList.pdf');
pdfConverter.SetDefaultPrinter;
recCustomer2 := recCustomer;
recCustomer.SETRECFILTER;
pdfConverter.SetDefaultPrinter;
REPORT.RUNMODAL(REPORT::"Customer -
List",FALSE,FALSE,recCustomer2);
pdfConverter.RestoreDefaultPrinter;
pdfConverter.FileNameOptions := 0;
pdfConverter.DriverEnd();

pdfConverter is an OCX from cdintf210.dll.

Everything seems to work the only problem we've got is that we miss the PDF file.
Does someone know where the converted file is stored or how it is handled, because we give our destination file and folder and it's not there.
:( :( :(

Somebody got a solution ? :?: :!:

Thx Eric & Steve
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You are calling SetDefaultPrinter twice in your code. Please replace SetDefaultPrinter called right before printing by a call to EnablePrinter().

Hope this helps 8) !
Post Reply