If you became a customer of the Syncfusion� Reporting Platform or the Report Viewer, Report Designer, or Report Writer components before October 2019 and have questions related to those products, you can request support through our forum system. However, please note that this support system is only for existing customers who are still using the Syncfusion� Reporting Platform or its components and not for new customers looking for reporting products from Syncfusion�.

For new customers or those with general reporting questions, we recommend contacting our support team at https://support.boldreports.com/, which is a separate brand created by Syncfusion� for its reporting solutions. Our team will be happy to assist you with any questions you may have.

Thank you for choosing Syncfusion� for your reporting needs.

How to display exported report in the Report Viewer

We are trying to use the report designer and viewer in our custom application. We need a way to view an already exported report in the viewer without having to re-query the data sources/re-export the report. 

We would like to do something similar to #6 in this link:

https://help.boldreports.com/embedded-reporting/aspnet-core-reporting/report-writer/export-ssrs-rdl-report/#client-side-changes


But instead of exporting as a PDF/CSV/etc, we would like to export to a format that the viewer can interpret without having to re-export the report.

Our current approach would be to call ReportHelper.ProcessReport and save that output so that the viewer can use it in the future. Is this a valid approach or is there an existing way of handling this?

Also, we realize we would need to modify the viewer slightly, so that you're not just selecting a report, you're selecting a report and a time it was generated at. 


7 Replies

NK Nanda Kumar Thangamani Syncfusion Team November 11, 2021 11:06 AM UTC

Hi August, 

Thanks for contacting Bold Reports support. 

Please find the response for your query, 
Query  
Update 
We are trying to use the report designer and viewer in our custom application. We need a way to view an already exported report in the viewer without having to re-query the data sources/re-export the report.  
As per your requirement understand you needed to view the already exported report. Report viewer doesn’t preview the exported report.  If this your requirement. You can save the export document in any storage location after using PDF viewer you can load the already exported report document and preview to user. 

Note : report viewer does not preview the exported document. Report viewer load the data from the data set and populate the data based the design in the RDL and show report to user. 
Our current approach would be to call ReportHelper.ProcessReport and save that output so that the viewer can use it in the future. Is this a valid approach or is there an existing way of handling this? 
You are trying to save the report with generated time and view the export in the report viewer in future. Which this not good, suggested approaches. 

What we suggest. You can save the exported document in your storage location based on time when generated. Then using document viewer you can load exported document and show the report to user. If you go for save PDF export mean you can user PDF viewer to view this. 
Also, we realize we would need to modify the viewer slightly, so that you're not just selecting a report, you're selecting a report and a time it was generated at.  
This can be handled in your application. User can choose report and generated time then you needed pick the exported document and loaded to document viewer like PDF viewer to show your PDF report. 
 
Regards, 
Nandakumar T 



AE August Eggers November 15, 2021 08:40 PM UTC

Hi Nandakumar,


Thanks for your response.


With the angular Report Designer model, is it possible to generate the payload it sends to the Report Service manually? Currently when saving a report with the designer it calls a PostFormDesignerAction with a payload that C# uses to generate the RDL. Is it possible to do this process without the report service?


Optimally, we'd like to obtain the RDL manually on the front end/angular side.



NK Nanda Kumar Thangamani Syncfusion Team November 16, 2021 09:51 AM UTC

Hi August, 

We could not generate report without backend reporting service. We can perform external action after generating report to use this saveReportDefinition callback API to get the report as xml or json format. Please refer the below help documentation to additional details, 
 
Regards, 
Nandakumar T 



AE August Eggers November 16, 2021 02:38 PM UTC

Hi Nandakumar,


Do you have any documentation on how to get the ReportDesigner object to actually call these methods? I've tried using a viewchild and don't have any way to use Save/Open report definition.


THanks



NK Nanda Kumar Thangamani Syncfusion Team November 17, 2021 07:53 AM UTC

Hi August, 

You can register the saveReportClick() event to get the designer object and save the report as JSON or XML format. Please find the blow help documentation and code snippet for your reference,  

saveReportClick, 

code snippet, 
   $("#container").boldReportDesigner({ 
        saveReportClick: function(args)
               var designerObj = $("#container").data("boldReportDesigner"); 
               designerObj.saveReportDefinition((args: any) => {}, ej.ReportDesigner.DataFormat.JSON);  
       
    }); 
 
Regards, 
Nandakumar T 



AE August Eggers November 17, 2021 03:21 PM UTC

Hi Nandakumar, 


That is not it because you cannot call that methods on that object, it only acts as an interface... Do you have any other way of doing this? I'd just like to be able to export/import things to




NK Nanda Kumar Thangamani Syncfusion Team November 18, 2021 10:52 AM UTC

Hi August, 

Do you want to save the exported document in your application or particular location? 
 
Regards, 
Nandakumar T 


Loader.
Up arrow icon