Page 1 of 1
Issue When Exporting Report to PDF
Posted: Fri Sep 26, 2025 2:09 pm
by TecnologiaMV
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.

- Screenshot_1396.png (59.07 KiB) Viewed 7709 times

- Screenshot_1397.png (39.75 KiB) Viewed 7709 times

- Screenshot_1398.png (61.64 KiB) Viewed 7709 times

- Screenshot_1399.png (60.67 KiB) Viewed 7709 times

- Screenshot_1400.png (33.8 KiB) Viewed 7709 times
Re: Issue When Exporting Report to PDF
Posted: Tue Sep 30, 2025 1:51 pm
by Vadim
Hello
Fix will available from version 2025.4.1
Re: Issue When Exporting Report to PDF
Posted: Wed Jan 07, 2026 7:28 pm
by TecnologiaMV
Dear,
I ran the test using version 2026.1.1, but the issue still persists.
Re: Issue When Exporting Report to PDF
Posted: Thu Jan 08, 2026 11:37 am
by Vadim
Hello
Please be sure you are using latest libs

- 81.gif (2.26 MiB) Viewed 3985 times
Re: Issue When Exporting Report to PDF
Posted: Thu Jan 08, 2026 6:25 pm
by TecnologiaMV
Dear,
I ran the test using version 2026.1.1, but the issue still persists.
follow the video
Re: Issue When Exporting Report to PDF
Posted: Fri Jan 09, 2026 11:52 am
by Vadim
Hello
Can you check about window, is it 2026.1.1 version?

- Screenshot 2026-01-09 145138.png (40.52 KiB) Viewed 3946 times
Re: Issue When Exporting Report to PDF
Posted: Mon Feb 23, 2026 9:28 am
by khkramer
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.
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"),
)
I get 0 logs or exceptions.
Running on Kotlin + JDK21.
Re: Issue When Exporting Report to PDF
Posted: Tue Feb 24, 2026 4:18 am
by Vadim
Hello
Before export you should render report
Re: Issue When Exporting Report to PDF
Posted: Tue Feb 24, 2026 8:44 am
by khkramer
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:
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();[/code]
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()
}
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)
Edit: figured it out:
Code: Select all
val db =
StiJsonDatabase("Food").apply {
jsonData = objectMapper.writeValueAsString(data)
}
dictionary.databases.add(db)
db.createDataSources(dictionary)
Re: Issue When Exporting Report to PDF
Posted: Wed Feb 25, 2026 9:24 am
by Vadim
Hello
Can you send us simple report & JSON data to reproduce problem?