Export to Image Programmatically?
-
- Posts: 28
- Joined: Fri Jul 17, 2020 2:19 pm
Export to Image Programmatically?
Is it possible to export a report to a data:image/uri/base-64 to be saved in the database?
We'd like to look at showing a preview of a report on the home screen of our app, and clicking it takes the user into the report.
We'd like to look at showing a preview of a report on the home screen of our app, and clicking it takes the user into the report.
-
- Posts: 7292
- Joined: Tue Mar 20, 2018 5:34 am
Re: Export to Image Programmatically?
Hello,
Yes, you can export the rendered report to image format
https://www.stimulsoft.com/en/documenta ... export.htm
Thank you.
Yes, you can export the rendered report to image format
https://www.stimulsoft.com/en/documenta ... export.htm
Thank you.
-
- Posts: 28
- Joined: Fri Jul 17, 2020 2:19 pm
Re: Export to Image Programmatically?
Lech Kulikowski wrote: ↑Thu Oct 01, 2020 3:30 pm Hello,
Yes, you can export the rendered report to image format
https://www.stimulsoft.com/en/documenta ... export.htm
Thank you.
Thanks for the link - I can't see from that link though where I can export to image? Only HTML, PDF, Word, Excel and CSV are listed.
-
- Posts: 7292
- Joined: Tue Mar 20, 2018 5:34 am
Re: Export to Image Programmatically?
Hello,
You can use the necessary StiExportFormat
https://admin.stimulsoft.com/documentat ... ormat.html
Thank you.
You can use the necessary StiExportFormat
https://admin.stimulsoft.com/documentat ... ormat.html
Thank you.
-
- Posts: 28
- Joined: Fri Jul 17, 2020 2:19 pm
Re: Export to Image Programmatically?
Hmm, I must be missing something.Lech Kulikowski wrote: ↑Mon Oct 05, 2020 1:32 pm Hello,
You can use the necessary StiExportFormat
https://admin.stimulsoft.com/documentat ... ormat.html
Thank you.
I'm using Vue and after the report is rendered, I'm running the following:
Code: Select all
computed: {
viewer() {
let options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.allowChangeWindowTitle = false;
options.toolbar.showOpenButton = false;
options.toolbar.showSaveButton = false;
options.toolbar.viewMode = 2;
return new Stimulsoft.Viewer.StiViewer(options, 'StiViewer', false);
},
report() {
return new Stimulsoft.Report.StiReport();
},
},
export() {
this.report.renderAsync(() => {
this.report.exportDocument(Stimulsoft.Report.StiExportFormat.Pdf);
})
}
-
- Posts: 7292
- Joined: Tue Mar 20, 2018 5:34 am
Re: Export to Image Programmatically?
Hello,
Please check:
Thank you.
Please check:
Code: Select all
report.renderAsync(function () {
var data = report.exportDocument(Stimulsoft.Report.StiExportFormat.Pdf);
Object.saveAs(data, "Report.pdf", "application/pdf");
})