How to use .rpx file to generate PDF?

Posted by: darinatch on 4 August 2017, 6:15 am EST

  • Posted 4 August 2017, 6:15 am EST

    Hello guys!

    First, I don't know anything for Active Reports, so excuse me if my question is silly.

    I have the following scenario:

    We have a software product, which uses ActiveReports to generate reports.

    The .rpx file for all the reports are available.

    How can I use these .rpx files to generate the PDF files for the reports outside of the vendor application?

    I want to automate the process of generating these reports with very specific file names. This seems to be very hard for the guys using the application, and we end up with a lot of spelling problems in the file names.

    Any tips and ideas are very much apreciated.

    Thank you!
  • Replied 4 August 2017, 6:15 am EST

    I forgot to mention the version of ActiveReports used in the application.

    It is

    Thank you!
  • Replied 4 August 2017, 6:15 am EST


    If you wish to write code within the RPX itself to export the generated report to PDF you can write the following script in the ReportEnd event.

    Sub OnReportEnd

    Dim p

    Set p=Createobject ("ActiveReportsPDFExport.ARExportPDF")


    p.export rpt.pages

    End Sub

    Please take a further look at the following help document regarding scripts in ActiveReports.



  • Replied 4 August 2017, 6:15 am EST

    Thank you, Prantik!

    It works like a charm!

    I like ActiveReports!


  • Replied 30 May 2018, 3:49 pm EST

    I would recommend to check library
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels