I am trying to use NAS to generate pdf reports through bullzip printer. The code gives good results if it is run directly from the client and also if NAS is run in debug-mode from command line. If NAS is run from Services it does not give any result. Has anybody had such experience?
Details:
NAV5.0 SP1
BullzipPDFPrinter_7_2_0_1320
Running on Server 2003 R2, Standard x64 Edition, Service Pack 2
This is the code.
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
FileDirectory := 'C:\temp\';
FileName := 'Bullzip.PDF';
BullZipPDF.Init;
BullZipPDF.LoadSettings;
RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE);
BullZipPDF.SetValue('Output',FileDirectory+FileName);
BullZipPDF.SetValue('Showsettings', 'never');
BullZipPDF.SetValue('ShowPDF', 'no');
BullZipPDF.SetValue('ShowProgress', 'no');
BullZipPDF.SetValue('ShowProgressFinished', 'no');
BullZipPDF.SetValue('SuppressErrors', 'yes');
BullZipPDF.SetValue('ConfirmOverwrite', 'no');
BullZipPDF.WriteSettings(TRUE);
REPORT.RUNMODAL(1,FALSE,FALSE);
TimeOut := 0;
WHILE EXISTS(RunOnceFile) AND (TimeOut < 10) DO BEGIN
SLEEP(500);
TimeOut := TimeOut + 1;
END;
0
Comments
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
You'll have to switch to the paid version of Bullzip (under another name) if you want to commercially use this product with more than 10 users.
|To-Increase|
Best regards