//Report 1 _ Statement FileName := 'Statement' + CustEmail."Customer No." + '.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); CLEAR(rStatement); //New rStatement.Passvariables(vAccTypeDim, vCampaignNo, PrintEntriesDue,PrintAllHavingEntry,PrintAllHavingBal, PrintReversedEntries, PrintUnappliedEntries, IncludeAgingBand, FORMAT(DateChoice), LogInteraction, vCredRep); //New rStatement.GetDateFilters(CustEmail."Customer No.", ldFrom, ldTo); rStatement.USEREQUESTFORM := FALSE; rStatement.RUNMODAL; //Report 2 - Summary of activity FileName := 'SumAct' + CustEmail."Customer No." + '.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); CLEAR(rStatement); //New rSumAct.GetDateFilters(CustEmail."Customer No.", ldFrom, ldTo); rSumAct.USEREQUESTFORM := FALSE; rSumAct.RUNMODAL;
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
|To-Increase|