AL icon indicating copy to clipboard operation
AL copied to clipboard

REPORT.SAVEASPDF cannot be used for 'Extension' development

Open sainath654 opened this issue 8 years ago • 1 comments

when i am trying to save the report in pdf format by using the REPORT.SAVEAS function giving the below error


[AL] The type or method 'SaveAsPdf' cannot be used for 'Extension' development. procedure SaveAsPdf(Number: Integer, FileName: Text, var [Record: Table]): Boolean Saves a report as a .pdf file.**

How can we save the file in pdf in AL Extension ?

sainath654 avatar Nov 05 '18 07:11 sainath654

You can use Report.SaveAs, passing ReportFormat::Pdf parameter and save it into a PDF stream

StanislawStempin avatar Nov 05 '18 08:11 StanislawStempin