AL icon indicating copy to clipboard operation
AL copied to clipboard

ERROR : The type or method SAVEASPDF cannot be used for Extension development.

Open srinivasdes opened this issue 8 years ago • 3 comments

Facing the above issue while convert our extension from V1 to V2

srinivasdes avatar Jan 09 '18 08:01 srinivasdes

Assuming this is on Reports we are looking into this. No ETA though.

esbenk avatar Jan 09 '18 11:01 esbenk

In the meanwhile you can export the report into a stream in the PDF format.

StanislawStempin avatar Jan 09 '18 16:01 StanislawStempin

Closing this as by design. For On-Premises usage just change your app.json to Target : Internal and the function will be available. For Cloud usage you need to withc to using Report.SaveAs function with the ReportFormat::PDF parameter and save the report to a stream.

StanislawStempin avatar Nov 05 '18 10:11 StanislawStempin