Question
2
Replies
114
Views
Plexus Tech
Posted: February 19, 2019
Last activity: March 6, 2019
Closed
Exporting a chart in a scheduled report to a PDF file not works with PhantomJs
Hi,
I need to include the chart of a report in a PDF and I have found this information "Exporting a chart in a scheduled report to a PDF file" in your knowledge base, but I have done several tests and it does not work.
Do you have any more recent information on this topic?
thanks so much.
Miguel.
Trying to apply the solution described in the link “Exporting a chart in a scheduled report to a PDF file” we detected several errors:
The code indicated for the JavaScript file "ChartURL. js" is wrong in line marked in the attached picture "exportingChartGraphInReportPdf_screenshot1"
This is the error message that you return when you run it with PhantomJS:
ReferenceError: Can't find variable: elseif
After fixing this error in the code, we run again the JavaScript file "ChartURL. js" and it shows the following error message:
TypeError: undefined is not an object (evaluating 'chartDivForTop.offsetParent')
The error is in line that is marked in the following attached exportingChartGraphInReportPdf_screenshot2.
We are passing all the parameters correctly but the execution of the JavaScript file "ChartURL. js" does not works.