micheal100
Members-
Content count
3 -
Joined
-
Last visited
-
Days Won
1
About micheal100
-
Rank
Forum Newbie
-
Fusionchartsexportcomponent Error Using Trial Software
micheal100 replied to micheal100's topic in General usage
any ideas on why the export isn't producing anything? -
Fusionchartsexportcomponent Error Using Trial Software
micheal100 replied to micheal100's topic in General usage
Thanks Angshu, I had actually saved the old charts folder and created a new one with the same name and copied the trial version in to it. Turns out that the browser had cached the *.swf. I've removed the "fcf_" bit from the file names, and its now using the correct swfs. But I am now not getting any output when I click the batch export button. (at least the error is gone! ) -
Hi, I'm trying to use the demo code as a template, but am unable to use the export functionality. I enabled debugging, and get the following error: Uncaught [object FusionChartsExportComponent]Error 10902092036.Error with internal FusionCharts object. Review parameters.Ref: myChartId1Refer to documentation. II am using the latest version of the trial software. Here is the html/JavaScript: <html> <head> <title>Control Charts</title> <script language="JavaScript" src="FusionCharts/FusionCharts.js"></script> <script language="JavaScript" src="FusionCharts/FusionChartsExportComponent.js"></script> <script type="text/javascript"> //Define a function, which will be invoked when user clicks the batch-export-initiate button function initiateExport() { myExportComponent.BeginExport(); } //This event is raised when the chart has finished capture phase and passed the data to //Export Component for further processing function FC_ExportReady(DOMId){ alert("The chart with DOM ID as " + DOMId + " has finished capture mode. It's now ready to be downloaded individually"); } //This event is raised when an individual chart has been successfully saved on user's disk (post click of button) function FC_Exported(objRtn){ if (objRtn.statusCode=="1"){ alert("The chart was successfully saved. Its DOM Id is " + objRtn.DOMId); } else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage + ". Its DOM Id is " + objRtn.DOMId); } } //This event is invoked when the user clicked on Save-All button and all the charts were saved on user's disk //as a single file. function FC_BatchExported(objRtn){ if (objRtn.statusCode=="1"){ alert("The batch was exported and saved as a single file named '" + objRtn.fileName + "'. The charts processed were " + objRtn.DOMId); }else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage); } } </script> </head> <body bgcolor="#ffffff"> <div id="chart1div" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div> <script type="text/javascript"> var myChart1 = new FusionCharts("FusionCharts/FCF_MSLine.swf", "myChartId1", "600", "500", "0", "1"); myChart1.setXMLUrl("ir_data.xml"); myChart1.render("chart1div"); </script> <div id="chart2div" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div> <script type="text/javascript"> var myChart2 = new FusionCharts("FusionCharts/FCF_MSLine.swf", "myChartId2", "600", "500", "0", "1"); myChart2.setXMLUrl("mr_data.xml"); myChart2.render("chart2div"); </script> <input type='button' onclick="javascript:initiateExport();" value="Begin batch export" /> <div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div> <script type="text/javascript"> var myExportComponent = new FusionChartsExportObject("fcBatchExporter", "FusionCharts/FCExporter.swf"); //Add the charts to queue. The charts are referred to by their DOM Id. myExportComponent.debugMode = true; myExportComponent.sourceCharts = ['myChartId1','myChartId2']; //------ Export Component Attributes ------// //Set the mode as full mode myExportComponent.componentAttributes.fullMode='1'; //Set saving mode as both. This allows users to download individual charts/ as well as download all charts as a single file. myExportComponent.componentAttributes.saveMode='both'; //Show allowed export format drop-down myExportComponent.componentAttributes.showAllowedTypes = '1'; //Cosmetics //Width and height myExportComponent.componentAttributes.width = '350'; myExportComponent.componentAttributes.height = '140'; //Message - caption of export component myExportComponent.componentAttributes.showMessage = '1'; myExportComponent.componentAttributes.message = 'Click on button above to begin export of charts. Then save from here.'; //Render the exporter SWF in our DIV fcexpDiv myExportComponent.Render("fcexpDiv"); </script> </body> </html> and here is some xml for the first chart <graph yaxisname='Individual Value' xaxisname='Job' caption='IR Chart' subcaption='Item = 'hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='2' showvalues='0'numdivlines='3' numVdivlines='0' yaxisminvalue='23' yaxismaxvalue='48' rotateNames='1' exportEnabled='1' exportAtClient='1' exportHandler='fcBatchExporter' > <categories> <category name='O280836-1'/> <category name='O280836-2'/> <category name='O280836-3'/> <category name='O280836-4'/> <category name='O280836-5'/> <category name='O280836-6'/> <category name='O280836-7'/> <category name='O280836-8'/> <category name='O280836-9'/> <category name='O280836-1'/> <category name='O280836-1'/> <category name='O281980-1'/> <category name='O281980-2'/> <category name='O281980-3'/> <category name='O281980-4'/> <category name='O281980-5'/> <category name='O282790-1'/> <category name='O282790-2'/> <category name='O82790-3'/> <category name='O282790-4'/> <category name='O282790-5'/> <category name='O282790-6'/> <category name='O282794-1'/> <category name='O282794-2'/> <category name='O282794-3'/> <category name='O282794-4'/> <category name='O282794-5'/> <category name='O283166-1'/> <category name='O283166-3'/> <category name='O283166-4'/> <category name='O283166-2'/> <category name='O286150-1'/> <category name='O286150-2'/> <category name='O286150-3'/> <category name='O286150-4'/> <category name='O286150-5'/> <category name='O286150-6'/> <category name='O286150-7'/> <category name='O286820-1'/> <category name='O286820-2'/> <category name='O286820-3'/> <category name='O286963-1'/> <category name='O286963-2'/> <category name='O286963-3'/> <category name='O286963-4'/> </categories> <dataset seriesName='LCL' color='F1683C' anchorBorderColor='F1683C' anchorBgColor='F1683C'> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> <set value = '28.42'/> </dataset> </graph>