SetupIE.GET(SetupIE.Direction::Export,'REM',0); PDFFileName := SetupIE."Path 1" + "No." + '.pdf'; CLEAR(ReminderReport); PrintRec := Rec; PrintRec.SETRECFILTER; ReminderReport.SETTABLEVIEW(PrintRec); IF EXISTS(PDFFileName) THEN ERASE(PDFFileName); IF ISCLEAR(BullZipPDF) THEN CREATE(BullZipPDF); BullZipPDF.Init; BullZipPDF.LoadSettings; BullZipPDF.SetValue('Output',PDFFileName); 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); ReminderReport.USEREQUESTFORM := FALSE; ReminderReport.RUNMODAL; Mail.NewMessage('dunkel@hertz.at','','Mahnung ' + FORMAT("No."),'',PDFFileName,TRUE);
Comments
now it will wait up to 10 seconds or until the file is found.
Hope this helps.
Regards,
Willy
It's just a simplified code for now to make it work. There's a whole lot of other stuff still missing as well.
thanks