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.
    Screen-based Endpoint to Report
  2. Import Web services References to our project
    Screen-based Endpoint to Report
  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.

7 Replies to “Getting Report PDF through Web Servies”

  1. Hi Sergey,

    I face an issue with the acumatica report ,when we print the report it show properly but with pdf the vertical lines extended

    1. Hi Riyaz, to answer this we need to review the report.
      I recommend you to create a case, so Acumatica team can review it.

  2. Hi Sergey,
    Is there any limitations to use of vertical lines in report?
    Don, t see vertical line in any of acumatica reports.
    Plz suggest.

    Regards,
    Gaurav Katiyar

    1. Gaurav,
      It is hard to answer. There are some limitations due to the reporting engine itself.
      Will it work or not we need to see case by case.

  3. Is there any limitations to use of vertical lines in report?
    Don, t see vertical line in any of acumatica reports.
    Plz suggest.

    Regards,
    Gaurav Katiyar

  4. Hi Sergey,

    Is it possible to retrieve a PDF version of an Invoice/Quote/Order using the Web Service Endpoint (Rest API) by creating an “Action” on a custom endpoint? We are trying to use the “Print Invoice/Memo@Report” mapped action but its doesn’t seem to be working. Is this possible? What are the required parameters? We are accessing from outside Acumatica, do you have sample Python code or any documentation that would point us in the right direction?

    Thanks!

    1. Hi John,
      As far as I know, only Screen Based Soap version of API has a feature to get PDF of the report back.
      I recommend you to submit an idea on http://feedback.acumatica.com

      As alternative, i guess you can generate a PDF version and attach it somewhere as a file. Than using Rest API get this file back from Acumatica. Rest API supports file getting.

Leave a Reply

Your email address will not be published. Required fields are marked *