AmyUni PDF converter 2.06 on Windows 2000 Terminal Server

Justin
Member Posts: 6
Hi
We are trying to use AmyUni PDF converter 2.06 on Windows 2000 Terminal Server. We have been using a Navision Attain application developed for our organisation for some time successfully on a stand alone desktop/s and need to move some users onto a windows 2000 terminal server.
The printing/conversion works fine if the user has Administrator rights, however if they do not we get the following error -
There was an error found when printing the document "..." to LPT1
Do you want to retry the job?
This is some of the code used to generate the report
PDFConverter.DriverInit('Navision PDF Converter');
PDFConverter.FileNameOptions(3);
PDFConverter.DefaultDirectory(ENVIRON('TEMP') + '\');
PDFConverter.SetDefaultPrinter;
FileName := 'EFT Remittance ' + EFTHeader."No." + '.pdf';
...
...
TempFileName := ENVIRON('TEMP') + STRSUBSTNO('\EFT_%1_%2.pdf',EFTLine2."Transfer No.",EFTLine2."Line No.");
PDFConverter.DefaultFileName(TempFileName);
REPORT FORMAT
REPORT.RUNMODAL(50006,FALSE,TRUE,EFTLine2);
...
PDFConverter.FileNameOptions(0);
PDFConverter.RestoreDefaultPrinter;
Any help appreciated!
Thanks,
Justin
We are trying to use AmyUni PDF converter 2.06 on Windows 2000 Terminal Server. We have been using a Navision Attain application developed for our organisation for some time successfully on a stand alone desktop/s and need to move some users onto a windows 2000 terminal server.
The printing/conversion works fine if the user has Administrator rights, however if they do not we get the following error -
There was an error found when printing the document "..." to LPT1
Do you want to retry the job?
This is some of the code used to generate the report
PDFConverter.DriverInit('Navision PDF Converter');
PDFConverter.FileNameOptions(3);
PDFConverter.DefaultDirectory(ENVIRON('TEMP') + '\');
PDFConverter.SetDefaultPrinter;
FileName := 'EFT Remittance ' + EFTHeader."No." + '.pdf';
...
...
TempFileName := ENVIRON('TEMP') + STRSUBSTNO('\EFT_%1_%2.pdf',EFTLine2."Transfer No.",EFTLine2."Line No.");
PDFConverter.DefaultFileName(TempFileName);
REPORT FORMAT
REPORT.RUNMODAL(50006,FALSE,TRUE,EFTLine2);
...
PDFConverter.FileNameOptions(0);
PDFConverter.RestoreDefaultPrinter;
Any help appreciated!
Thanks,
Justin
0
Comments
-
Hi Justin
Maybe this code will works...
TempDir := ENVIRON('TEMP')+'\';
TempFileName := 'temp.pdf';
PDFConverter.DriverInit('Navision PDF Converter');
PDFConverter.EnablePrinter(Company Name,Licence Key);
PDFConverter.FileNameOptionsEx(1 + 2 + 16 + 128 + 512 + 131072 + 2097152);
PDFConverter.FontEmbedding(TRUE); {always use this !!}
PDFConverter.DefaultDirectory(TempDir);
PDFConverter.DefaultFileName(TempDir + TempFileName);
//sometimes this code is useful:
rec.SETRECFILTER;
//use this code just before the printing:
PDFConverter.SetDefaultPrinter;
REPORT.RUNMODAL(50006,FALSE,TRUE,Rec);
//close the printer driver:
PDFConverter.DriverEnd;
CLEAR(PDFConverter);
/regards
Morten0 -
Thanks for the info
I Managed to solve the problem by changing the registry permissions using regedt32. I found it worked by adding write permissions to the registry keys used by amyuni.
Regards,
Justin0 -
I have the same problem here on Amyuni PDF Converter 3.0, Terminal Server 2003 and Navision 4 SP3.
But registry permissions did not help.
Does someone have solution for this?
Thanks0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions