Stimulsoft.JS: Exporting to PDF and images
Posted: Wed Dec 14, 2016 12:35 pm
Hello,
we are trying to load, render and export a report to a PDF file without showing any controls (like viewer or designer).
Using your sample does not work for embedded images whereas exporting it via the HTML viewer does work.
The programming guide doesn't contain any helpful information on how to make this scenario work.
We tried to have a look at stimulsoft.reports.js, but as it is compressed code, it's really hard to read.
Version: Stimulsoft.JS Trial 2016.3
Reproduction:
Please find the slightly modified Demo example attached.
1)
- Select Images report in left panel
- Click "Save" -> "Adobe PDF File..." in the top toolbar, use default settings
- A PDF will be downloaded. Report contains images as expected
2)
- Select Images report in left panel
- Click the "STIMULSOFT REPORTS JS" image in the top left of the page
- A PDF will be downloaded. Report does not contain images
We have bound a onclick listener to the "STIMULSOFT REPORTS JS" image which executes the sample code for exporting as PD>F from here.
Any help is appreciated. Thank you!
we are trying to load, render and export a report to a PDF file without showing any controls (like viewer or designer).
Using your sample does not work for embedded images whereas exporting it via the HTML viewer does work.
The programming guide doesn't contain any helpful information on how to make this scenario work.
We tried to have a look at stimulsoft.reports.js, but as it is compressed code, it's really hard to read.
Version: Stimulsoft.JS Trial 2016.3
Reproduction:
Please find the slightly modified Demo example attached.
1)
- Select Images report in left panel
- Click "Save" -> "Adobe PDF File..." in the top toolbar, use default settings
- A PDF will be downloaded. Report contains images as expected
2)
- Select Images report in left panel
- Click the "STIMULSOFT REPORTS JS" image in the top left of the page
- A PDF will be downloaded. Report does not contain images
We have bound a onclick listener to the "STIMULSOFT REPORTS JS" image which executes the sample code for exporting as PD>F from here.
Any help is appreciated. Thank you!