Not able to load guage in genearted pdf from stiimulsoft reports

Stimulsoft Reports.JS discussion
Post Reply
kumar2011
Posts: 4
Joined: Thu Oct 20, 2022 8:59 am

Not able to load guage in genearted pdf from stiimulsoft reports

Post by kumar2011 »

Actually created dashboard design page with guage & text. When generating the pdf from that design, guage is missing in the pdf & able to see text. Attached sample images below: Can you help me to solve this issue

Code:

var Stimulsoft = require("stimulsoft-dashboards-js");

Stimulsoft.Base.StiFontCollection.addOpentypeFontFile(
"/home/nineleaps/DIY/wagrowth/server/public/Roboto-Black.ttf"
);

var report = new Stimulsoft.Report.StiReport();

// Loading report template
report.load(design);

report.renderAsync(() => {
console.log("Report rendered. Pages count: ", report.renderedPages.count);

// Export to PDF
report.exportDocumentAsync((pdfData) => {
// Converting Array into buffer
var buffer = Buffer.from(pdfData);

// File System module
var fs = require("fs");

// Saving string with rendered report in PDF into a file
fs.writeFileSync("./SimpleList.pdf", buffer);

console.log("Rendered report saved into PDF-file.");
}, Stimulsoft.Report.StiExportFormat.Pdf);
});
Lech Kulikowski
Posts: 6240
Joined: Tue Mar 20, 2018 5:34 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by Lech Kulikowski »

Hello,

Please check the last release buid. If the issue is still present, please send us a sample report with test data that reproduces the issue for analisys.

Thank you.
kumar2011
Posts: 4
Joined: Thu Oct 20, 2022 8:59 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by kumar2011 »

Created stackbiltz with test data & attached here.Please have a look

https://codesandbox.io/s/dazzling-water ... src/App.js
Lech Kulikowski
Posts: 6240
Joined: Tue Mar 20, 2018 5:34 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by Lech Kulikowski »

Hello,

Please check your report on our samples.
https://github.com/stimulsoft/Samples-JS

Thank you.
kumar2011
Posts: 4
Joined: Thu Oct 20, 2022 8:59 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by kumar2011 »

Tried with your samples but still not able to load guage in pdf.

used below code:
https://github.com/stimulsoft/Samples-J ... F/index.js
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#8622
kumar2011
Posts: 4
Joined: Thu Oct 20, 2022 8:59 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by kumar2011 »

Sure
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by Max Shamanov »

Hello,

We will let you know about the result.

Thank you.
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Not able to load guage in genearted pdf from stiimulsoft reports

Post by Max Shamanov »

Hello,

The issue is fixed. The fix will be available in the next build next week.

Thank you.
Post Reply