Save rendered report document
Save rendered report document
Hello,
I need to save the currently rendered report in the viewer programmically.
Does anyone know how to do this, in asp.net core?
Thanks
I need to save the currently rendered report in the viewer programmically.
Does anyone know how to do this, in asp.net core?
Thanks
-
Lech Kulikowski
- Posts: 7523
- Joined: Tue Mar 20, 2018 5:34 am
Re: Save rendered report document
Hello,
You can use the SaveDocument() method:
report.Render();
report.SaveDocument();
Thank you.
You can use the SaveDocument() method:
report.Render();
report.SaveDocument();
Thank you.
Re: Save rendered report document
Hi Lech,
Thank you, yes I know about various types of Save functions that are part of report object.
My problem is, after the data registered and the report is rendered, the report object becomes null.
How do I maintain the report object, after render in the viewer and then I can save as document?
Thank you
Thank you, yes I know about various types of Save functions that are part of report object.
My problem is, after the data registered and the report is rendered, the report object becomes null.
How do I maintain the report object, after render in the viewer and then I can save as document?
Thank you
-
Lech Kulikowski
- Posts: 7523
- Joined: Tue Mar 20, 2018 5:34 am
Re: Save rendered report document
Hello,
In what moment do you want to save the report?
Thank you.
In what moment do you want to save the report?
Thank you.
Re: Save rendered report document
After the report has been fully rendered in the viewer.
The user can choose from an outside menu to save what they see, perhaps seconds or minutes after rendering complete.
Thanks
The user can choose from an outside menu to save what they see, perhaps seconds or minutes after rendering complete.
Thanks
-
Lech Kulikowski
- Posts: 7523
- Joined: Tue Mar 20, 2018 5:34 am
Re: Save rendered report document
Hello,
What do you mean by the outside menu? It is difficult to say why it is null without a sample.
Thank you.
What do you mean by the outside menu? It is difficult to say why it is null without a sample.
Thank you.
Re: Save rendered report document
Hi
Can I initiate a save document from razor view for Stimulsoft Viewer component , please, or are there any workaround?
Thank you
Can I initiate a save document from razor view for Stimulsoft Viewer component , please, or are there any workaround?
Thank you
-
Lech Kulikowski
- Posts: 7523
- Joined: Tue Mar 20, 2018 5:34 am
Re: Save rendered report document
Hello,
You can render and save document:
public IActionResult OnPostGetReport()
{
StiReport report = new StiReport();
report.Load("");
report.Render();
report.SaveDocument("");
return StiNetCoreViewer.GetReportResult(this, report);
}
Thank you.
You can render and save document:
public IActionResult OnPostGetReport()
{
StiReport report = new StiReport();
report.Load("");
report.Render();
report.SaveDocument("");
return StiNetCoreViewer.GetReportResult(this, report);
}
Thank you.