Tore Gjerdrum Report post Posted April 4, 2011 Hi, I have gotten the FCExporter.aspx up and running and it works fine using the right click menu in the chart. But I want to trigger an export from my code so I can use the image in an PDF that create on the fly. Is this possible? The best way is to get the chart exported as a stream so I do not need to save it on the server. If this is not possible I can save the image on disk and fetch it from there. Can anyone guide me in the right direction to get this done? Regards Tore Gjerdrum Share this post Link to post Share on other sites
Guest Angie Report post Posted April 4, 2011 Hi, Welcome to FusionCharts Forum! Please refer to the link: http://forum.fusioncharts.com/topic/8685-please-tell-me-this-is-possible/page__p__35150__hl__stream__fromsearch__1#entry35150 Hope this helps. Share this post Link to post Share on other sites
Tore Gjerdrum Report post Posted April 4, 2011 Hi, Thanks for your answer. I am not sure how I do this. Do I only use javascript and not the FCExporter.aspx? Do you have some more code or an example I can look at? Regards Tore Gjerdrum Share this post Link to post Share on other sites
Guest Angie Report post Posted April 4, 2011 Hi, Welcome to FusionCharts Forum! Please refer to the link: http://www.fusioncharts.com/docs/?ECJavaScript.html You would need to modify the code of FCExporter.aspx as per your requirement. Hope this helps. Share this post Link to post Share on other sites
Tore Gjerdrum Report post Posted April 4, 2011 Hi, thanks again for your answer. If i do it like explained in the article, where is the image stored? On the local file system? Regards Tore Gjerdrum Share this post Link to post Share on other sites
Guest Angie Report post Posted April 4, 2011 Hi, Thank for your reply. The image will be saved on the local hard drive of your system. Hope this helps. Share this post Link to post Share on other sites
Tore Gjerdrum Report post Posted April 4, 2011 Hi, that actually helps a lot! Is there a way to get the stream back instead of saving the actual image? Regards, Tore Gjerdrum Share this post Link to post Share on other sites
Guest Angie Report post Posted April 4, 2011 Hi, Steam can be posted back using the stream variables. You can also post the stream back by using JavaScript instead of using any server side scripting. Hope this helps. Share this post Link to post Share on other sites
Tore Gjerdrum Report post Posted April 4, 2011 Do you have any example code for this? Regards, Tore Gjerdrum Share this post Link to post Share on other sites
Guest Angie Report post Posted April 4, 2011 Hi, I am afraid, we are not able to provide you any example code, at this time. You would need to create your own code as per your requirement. Thank you very much for your continued patience and patronage. Hope you have a great day! Share this post Link to post Share on other sites
Tore Gjerdrum Report post Posted April 4, 2011 Hi again, Is it possible to do this without using javascript? Can i get this image generated from the server? Regards, Tore Gjerdrum Share this post Link to post Share on other sites
FusionCharts Support Report post Posted April 5, 2011 Hi, Yes, if you have Windows and .NET 2.0 or more installed you can use an assembly to generate chart images at server end from command line or from any .NET application. Share this post Link to post Share on other sites