Exporting DOC or PPT not working with Charts!
Posted: Mon Jan 11, 2021 7:00 pm
Hello,
I am trying to compile a report template containing a chart with Stimulsoft Report JS in Node.js. Using PDF format the export works properly, but just changing the format in DOC or PPT something goes wrong:
- DOC: the output document does not contain the chart (and without showing errors during the process);
- PPT: fails the process without producing an output file showing various errors.
This problem happens even with other report templates. I am pretty sure the cause is related to the chart, indeed, if I try to edit the same mrt file removing the chart only, I can produce the ppt file correctly (even if the process always is interrupted showing some errors finally). Although, by the Stimulsoft Designer any exporting format works perfectly, so there should be a problem in stimulsoft-reports-js library.
I prepared a very simple code to show you the problem:
- index.js, the main execution file, which creates all the possible output documents (doc, ppt, pdf);
- reports, a directory which contains the mrt files with and without the chart;
- exports, a directory where will be stored the output documents.
Pay attention: the code contains the lines to produce ppt documents, but I just commented them to avoid the interruption of the execution (since both cases produces some errors).
I hope you should figure out how to solve this problem.
Thank you!
Best regards,
Michele
I am trying to compile a report template containing a chart with Stimulsoft Report JS in Node.js. Using PDF format the export works properly, but just changing the format in DOC or PPT something goes wrong:
- DOC: the output document does not contain the chart (and without showing errors during the process);
- PPT: fails the process without producing an output file showing various errors.
This problem happens even with other report templates. I am pretty sure the cause is related to the chart, indeed, if I try to edit the same mrt file removing the chart only, I can produce the ppt file correctly (even if the process always is interrupted showing some errors finally). Although, by the Stimulsoft Designer any exporting format works perfectly, so there should be a problem in stimulsoft-reports-js library.
I prepared a very simple code to show you the problem:
- index.js, the main execution file, which creates all the possible output documents (doc, ppt, pdf);
- reports, a directory which contains the mrt files with and without the chart;
- exports, a directory where will be stored the output documents.
Pay attention: the code contains the lines to produce ppt documents, but I just commented them to avoid the interruption of the execution (since both cases produces some errors).
I hope you should figure out how to solve this problem.
Thank you!
Best regards,
Michele