we want to use PDF Converter Dev Edition to create PDFs from Navision. I tried the eval-Version with success.
Our customer is running Navision (2009R2, Classic Client) on Terminals Servers on Windows 2012R2 with about 20 Users per Server.
I will install the PDF Converter Driver as a regular Printer on all Terminalservers (and can use it only to generate PDFs from Navision).
The users generate many PDFs the whole day to send them by email.
- What must I do to prevent the users are getting wrong PDFs?
- Must I use the Lock-Command? Does the Lock-Command cause a delay for other users if they want to generate a PDF at the same time?
- If a user generate a PDF from Navision and prints another document at the same time from an other application like Word to the standard printer, is it possible the user prints to amyuni PDF-driver instead of the regular printer?
- What happens if Navision shows an error and as a result the Command RestoreDefaultPrinter is not executed?
My code (at the moment):
Code: Select all
autPDFo.DriverInit('NAV-PDF-Printer'); // Printer is installed
autPDFo.Lock('NAV-PDF-Printer');
autPDFo.EnablePrinter('Amyuni PDF Converter Evaluation', 'verylongkey');
autPDFo.FileNameOptions(1 + 2); //1 = no promt, 2 = use default filename
autPDFo.DefaultDirectory('c:\Temp');
autPDFo.SetDefaultPrinter();
autPDFo.DefaultFileName('u:\Temp\TestPDF-OCX.pdf'); // Save to users home drive
... select the thing I want to print and print the report ...
autPDFo.FileNameOptions(0);
autPDFo.RestoreDefaultPrinter();
Thanks for your help in advance.