Wednesday, 19 July 2017

Getting Report PDF through Web Servies

Hi All,

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:
  1. Screen-based Endpoint to Report.
  2. Import Web services References to our project
  3. Fill report parameters using Value command.
  4. Request Report to be formatted as PDF (schema.ReportResults.PdfContent). Please note that you also can get a HTML representation of report.
  5. Receive report binary data from Acumatica using Submit command from Web Services.
  6. 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.

No comments: