OpenEdge ABL and Telerik Report

1 Answer 38 Views
DataSource JSON DataSource Object DataSources Programming Report Designer (standalone)
Jon
Top achievements
Rank 1
Jon asked on 01 Oct 2024, 04:16 PM

Hi

I'd like to programmatically (from an OpenEdge ABL procedure) run a Telerik Report (TRDP file) that has been saved on disk.

I'd also like to point that report file to 2 datasources at runtime that are also on disk "invoiceHeader.json" and "invoiceLines.json". 

The output must be a PDF file.

Please can you point me in the right direction.

Many thanks

Jon

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 02 Oct 2024, 04:01 PM

Hi Jon,

I noticed that you have raised the same questions in a Support ticket I already addressed. Here is my reply for the benefit of our community:

Let me start with passing the JSON data to the declarative report definition. The suggested approach is described in the following KB articles:

You may use the Header data in a List/Table in the Report Header to be rendered once.

You may assign detailed data to the Report or another List/Table inside it to render all the details based on the incoming data.

When you want to create files for multiple invoice numbers, you may pass the invoice number as a Report Parameter to the report and generate it based on this number, for example, by reading different JSON files or filtering the JSON data.

Regarding exporting to PDF, you may do it with the ReportProcessor class as explained in the article Generating Reports Locally with Code.

When it comes to the integration with ABL, you may find more details in the KB article How to run a Telerik report from ABL?

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
DataSource JSON DataSource Object DataSources Programming Report Designer (standalone)
Asked by
Jon
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or