PDF CREATOR WITH NAVISION APPLICATION SERVER

vsalot
Member Posts: 47
Hello!!!!
I am trying to run the below code using NAS. But no PDF file is getting generated. Pls suggest.
The same code is working fine while running the same directly from Classic Client.
IF ISCLEAR(PDFCreator) THEN
CREATE(PDFCreator);
IF ISCLEAR(PDFCreatorError) THEN
CREATE(PDFCreatorError);
filedir := 'D:\';
filename := 'Finish Goods Stock';
PDFCreatorError := PDFCreator.cError;
IF PDFCreator.cStart('/NoProcessingAtStartup',TRUE) = FALSE THEN
ERROR('Status: Error: ' + PDFCreatorError.Description);
filename1 :=CONVERTSTR(FORMAT(filename),'.','_');
fn := CONVERTSTR(FORMAT(filename1),'/','_');
attachlocation := 'D:'+'\'+fn+'.pdf';
PDFCreatorOption := PDFCreator.cOptions;
PDFCreatorOption.AutosaveDirectory := filedir;
PDFCreatorOption.AutosaveFilename := fn;
PDFCreatorOption.UseAutosave := 1;
PDFCreatorOption.UseAutosaveDirectory := 1;
PDFCreatorOption.AutosaveFormat := 0;
PDFCreator.cOptions := PDFCreatorOption;
PDFCreator.cClearCache();
DefaultPrinter := PDFCreator.cDefaultPrinter;
PDFCreator.cDefaultPrinter := 'PDFCreator';
PDFCreator.cPrinterStop := FALSE;
REPORT.RUNMODAL(50084,FALSE,TRUE,Item);
Thanks,
I am trying to run the below code using NAS. But no PDF file is getting generated. Pls suggest.
The same code is working fine while running the same directly from Classic Client.
IF ISCLEAR(PDFCreator) THEN
CREATE(PDFCreator);
IF ISCLEAR(PDFCreatorError) THEN
CREATE(PDFCreatorError);
filedir := 'D:\';
filename := 'Finish Goods Stock';
PDFCreatorError := PDFCreator.cError;
IF PDFCreator.cStart('/NoProcessingAtStartup',TRUE) = FALSE THEN
ERROR('Status: Error: ' + PDFCreatorError.Description);
filename1 :=CONVERTSTR(FORMAT(filename),'.','_');
fn := CONVERTSTR(FORMAT(filename1),'/','_');
attachlocation := 'D:'+'\'+fn+'.pdf';
PDFCreatorOption := PDFCreator.cOptions;
PDFCreatorOption.AutosaveDirectory := filedir;
PDFCreatorOption.AutosaveFilename := fn;
PDFCreatorOption.UseAutosave := 1;
PDFCreatorOption.UseAutosaveDirectory := 1;
PDFCreatorOption.AutosaveFormat := 0;
PDFCreator.cOptions := PDFCreatorOption;
PDFCreator.cClearCache();
DefaultPrinter := PDFCreator.cDefaultPrinter;
PDFCreator.cDefaultPrinter := 'PDFCreator';
PDFCreator.cPrinterStop := FALSE;
REPORT.RUNMODAL(50084,FALSE,TRUE,Item);
Thanks,
0
Comments
-
make sure the nas user is local admin on the box and nas is running on same box where pdfcreator is installed.
Also make sure you are using the same creator version.0 -
Thanks Rashed!!
I have checked all the settings. Everything seems perfect. But still no result with NAS..0 -
Did you try to run the report from the Classic Client, but with the NAS user?-- Jup --0
-
start the nas from CMD prompt and see if it works.0
-
Sometime there is problem with the functionality checking new version of PDF Creator. You need to disable it, else it could stuck on the dialog opened when PDFCreator is started (the "There is new version of PDF Create, do you want to download it..." or something similar).0
-
I have the same issue ](*,) ... Did you manage to resolve? I have already disabled updates.0
-
did you try and start nas from command prompt?0
-
Just tried stopping my service, ran NAS in a command prompt. It ran picked up the job queue entry but still no joy.
(The command prompt window show the MESSAGE('Running report') I put in the code so i can see it executed the code to run the report)
PDFCreator never generated the .pdf file in my subdirectory on server. It's like the PDFCreator isn't intercepting the print job.0
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