Today want to show you very simple example of getting printing report and getting it’s PDF representation thought Screen Based API.
For doing this we need:
- Screen-based Endpoint to Report.
- Import Web services References to our project
- Fill report parameters using Value command.
- Request Report to be formatted as PDF (schema.ReportResults.PdfContent). Please note that you also can get a HTML representation of report.
- Receive report binary data from Acumatica using Submit command from Web Services.
- Save data somewhere. In my case i’m just saving report as a file to file system, but you can process it however you need.
Full Code Sample:
Have a nice Integration.