Hi,
i've an error message when trying to automaticaly export charts into PDF .
Code generated with PHP , the export works fine , when i do it manually.
script type="text/javascript">
function ExportMyChart() {
var chartObject = getChartFromId("flux_en3");
if( chartObject.hasRendered() ) chartObject.exportChart();
}
/script>
!-- START Script Block for Chart flux_en3 -->
div id="flux_en3Div">
Chart.
/div>
script type="text/javascript" >
var chart_flux_en3 = new FusionCharts("/communs/FusionCharts/Charts/StackedColumn2D.swf", "flux_en3", "800", "400", "0", "1", "","noScale","EN");
//Provide entire XML data using dataXML method
chart_flux_en3.setDataXML("datas here");
chart_flux_en3.render("flux_en3Div");
/script>
!-- END Script Block for Chart flux_en3 -->
script>
ExportMyChart();
/script>