hi,
you cau use bullzip PDF automation class (a free component) on NAV 4, 5 ..
Bullzip Integration
you can print a report on bullzip PDF Printer using a lot of options; you need a litle custom to create custom filenames, passing parameters etc.
an example oh this:
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
ReportID := ReportNo; // REPORT::"Customer Listing";
FileDirectory := 'C:\SE_Demo\Temp';
Object.GET(Object.Type::Report,'',ReportID);
FileName := SaveFileName;
BullZipPDF.Init;
BullZipPDF.LoadSettings;
RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE);
BullZipPDF.SetValue('Output',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(ReportNo,FALSE,FALSE,SalesHeader);
TimeOut := 0;
WHILE EXISTS(RunOnceFile) AND (TimeOut < 10) DO BEGIN
SLEEP(1000);
TimeOut := TimeOut + 1;
END;
Mibuso Link
www.mibuso.com/.../viewtopic.php