Doubt in Email option for Reports !!

Hi guys, In Axapta reports, If we try to send the report through email, the default attachment name would be “axaptareport.pdf”, So is it possible to change the attachment file name to functionality name of the report, Like “DailySalesReport”. Could anyone guide me where to customize this?

Hi,

You can set the file name from the PrintJobSettings class

In the Report.fetch method before calling the super unpack the print job setting object and then set the complete file name

element.unpackPrintJobSettings();
element.printJobSettings().fileName(“C:\FileName.pdf”);

Regards,

Zeeans