pitommasi Report post Posted May 12, 2011 I have a page with up to four elements (up to 2 maps and up to 2 charts) and I want to export it "wysiwyg" style: is that possible? Problem is, want to add other things in the export, not only fusion charts and maps. What can the possible solution be? Thanks P.S.: I have JAVA in the backend. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 12, 2011 Hi, I have a page with up to four elements (up to 2 maps and up to 2 charts) and I want to export it "wysiwyg" style: is that possible? Presently you can export the charts and map barring the shadow effects added to the charts and maps. Problem is, want to add other things in the export, not only fusion charts and maps.What can the possible solution be? Although there is no native support for adding you own things in the exported image etc. if you can possibly modify the source of the server side export handler, which generates an image object of the chart, and add your one elements to the image. Share this post Link to post Share on other sites
pitommasi Report post Posted May 12, 2011 Presently you can export the charts and map barring the shadow effects added to the charts and maps. Yes, but it is possible to export all of them (2 maps and 2 charts) in the same file? I mean, is the handler the same for charts and maps? Although there is no native support for adding you own things in the exported image etc. if you can possibly modify the source of the server side export handler, which generates an image object of the chart, and add your one elements to the image. so, without modifying the source code of the handler, is it possible to send the binary stream to Java, instead of writing files to disk? and, anyway, where is the handler's source code? Share this post Link to post Share on other sites
pitommasi Report post Posted May 12, 2011 another thing: I also need to print the same things... Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 12, 2011 Hi, At client side you can. At server side you can export individual item to individual file. But, why not stitch them with your own code once you get them? The source code is in FusionCharts Pack > Code > J2EE > SourceCode folder. You can not print all to a single page unless you use the browser's print option. Share this post Link to post Share on other sites
pitommasi Report post Posted May 13, 2011 At client side you can. At server side you can export individual item to individual file. But, why not stitch them with your own code once you get them? So, they HAVE to be saved in the file system, first? Are they saved on the server or on the user's PC? The source code is in FusionCharts Pack > Code > J2EE > SourceCode folder. does this code apply to fusionmap also? because, as I said, for some cases, I need to export maps and charts in the same page... Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 14, 2011 Hi, Same applies to FusionMaps as well. Using Client side export user can save to client machine. Using server side export the image saves at server file system. The workflow of saving the chart at server can be stated briefly as follows: 1. The chart from cient side POSTs the chart image data as RLE to the server side export handler 2. The server side export handler decodes the RLE and creates an image object (memory) at server and 3. On basis of passed option (exportAction="save/download") it either saves the image object as file at server or throws back the image as downloadable response to client. What I had suggested is to break after step 2 and use the image object with your code to fulfill your requirement like adding into your own PDF creating API, mail, add more things on this image object etc. Share this post Link to post Share on other sites
pitommasi Report post Posted May 17, 2011 ok, then, more or less what I had in mind... only doubt that remains is: are the fusionmaps and fusioncharts exporter handlers the same or should I use two different files? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 18, 2011 You can use the latest FusionCharts export handler (client side and server side) for both FusionCharts and FusionMaps. Share this post Link to post Share on other sites
pitommasi Report post Posted May 18, 2011 Great! That's exactly what I wanted to know. Thanks Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 18, 2011 Hi, You are always welcome. Share this post Link to post Share on other sites