Issue When Exporting Report to PDF
-
TecnologiaMV
- Posts: 97
- Joined: Mon May 30, 2022 7:35 pm
Issue When Exporting Report to PDF
Dear,
I am experiencing an issue when trying to save a report as a PDF.
When I open the export settings and select the option “Open after export”, the system generates a new URL. However, when I click on the PDF download icon, the report is downloaded empty, without an extension, and only with the name:
stimulsoft_webviewer_action
When I try to save and open this file, it cannot be viewed.
The issue has already been tested in previous versions as well as in the latest version 2025.3.5, and it occurs in all of them.
I am experiencing an issue when trying to save a report as a PDF.
When I open the export settings and select the option “Open after export”, the system generates a new URL. However, when I click on the PDF download icon, the report is downloaded empty, without an extension, and only with the name:
stimulsoft_webviewer_action
When I try to save and open this file, it cannot be viewed.
The issue has already been tested in previous versions as well as in the latest version 2025.3.5, and it occurs in all of them.
Re: Issue When Exporting Report to PDF
Hello
Fix will available from version 2025.4.1
Fix will available from version 2025.4.1
-
TecnologiaMV
- Posts: 97
- Joined: Mon May 30, 2022 7:35 pm
Re: Issue When Exporting Report to PDF
Dear,
I ran the test using version 2026.1.1, but the issue still persists.
I ran the test using version 2026.1.1, but the issue still persists.
Re: Issue When Exporting Report to PDF
Hello
Please be sure you are using latest libs
Please be sure you are using latest libs
-
TecnologiaMV
- Posts: 97
- Joined: Mon May 30, 2022 7:35 pm
Re: Issue When Exporting Report to PDF
Dear,
I ran the test using version 2026.1.1, but the issue still persists.
follow the video
I ran the test using version 2026.1.1, but the issue still persists.
follow the video
Re: Issue When Exporting Report to PDF
Hello
Can you check about window, is it 2026.1.1 version?
Can you check about window, is it 2026.1.1 version?
Re: Issue When Exporting Report to PDF
Hey guys I was trying out Stimulsoft java (we currently have web/js but I want to the PDF export integrated in our backend instead of a separate NodeJS process), and I have the same issue but broader in scope, exporting does not produce valid results regardless of format.
StiExportManager.exportPdf() produces an invalid/blank PDF regardless of report used. exportHTML produces an HTML file with an empty body.
Doesn't matter if I load a JSON template or create a new report in code.
I get 0 logs or exceptions.
Running on Kotlin + JDK21.
StiExportManager.exportPdf() produces an invalid/blank PDF regardless of report used. exportHTML produces an HTML file with an empty body.
Doesn't matter if I load a JSON template or create a new report in code.
Code: Select all
val report =
StiReport().apply {
addPage(
StiPage(this).apply {
components.add(StiText(StiRectangle(100L, 100L, 100L, 20L), "Test123"))
},
)
}
val outputStream = FileOutputStream("test.pdf")
StiExportManager.exportPdf(
report,
StiPdfExportSettings().apply {
imageCompressionMethod = StiPdfImageCompressionMethod.Jpeg
},
outputStream,
)
StiExportManager.exportHtml(
report,
FileOutputStream("test.html"),
)Running on Kotlin + JDK21.
Re: Issue When Exporting Report to PDF
Thanks that was the issue.
However I'm now running into the following.
I tried to replicate the json database we use in Reports.JS in Reports.Java
My JS code:
My Kotlin code:
However in Stimulsoft.java it does not seem to register the data in a way the report recognizes it.
Console is full of logs like: "Parser error: The name 'rows' does not exist in the current context".
Is there another method in the java version I should use to replace the JS behaviour? (the same report there renders fine with data)
However I'm now running into the following.
I tried to replicate the json database we use in Reports.JS in Reports.Java
My JS code:
Code: Select all
const report = Stimulsoft.Report.StiReport.createNewReport();
report.load(template);
const dataSet = new Stimulsoft.System.Data.DataSet("Food");
dataSet.readJson(data, JsonRelationDirection.ChildToParent);
// Remove any persisted data sources from the template.
report.dictionary.clear();
report.regData("Food", "Food", dataSet);
report.dictionary.synchronize();My Kotlin code:
Code: Select all
val report =
StiReport().apply {
loadFromJson(template)
dictionary.clear()
dictionary.databases.add(StiJsonDatabase("Food"))
regJsonData("Food", objectMapper.writeValueAsBytes(data), true)
dictionary.synchronize()
render()
}Console is full of logs like: "Parser error: The name 'rows' does not exist in the current context".
Is there another method in the java version I should use to replace the JS behaviour? (the same report there renders fine with data)