Bullzip pdf on Server 2003, 64bit

ar_freyar_frey Member Posts: 3
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;

Comments

Sign In or Register to comment.