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:
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.
|
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. |
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.
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
|
$("#container").boldReportDesigner({
saveReportClick: function(args) {
var designerObj = $("#container").data("boldReportDesigner");
designerObj.saveReportDefinition((args: any) => {}, ej.ReportDesigner.DataFormat.JSON);
}
}); |
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