Sign in to follow this  
eza

help wirExport server

Recommended Posts

hi..

 

can u help me.. (pure javascript)

 

how can i create a server like "http://export.highcharts.com/" or "export.api3.fusioncharts.com" for exporting data. with pure javascript..

 

i have tried each step "http://docs.fusioncharts.com/charts/contents/?exporting-image/server-side/ECServerSave.html"

 

still dont get it..  

 

but svn file export sucessfully to temp folder in my server

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

If you are looking for setting up your own server in PHP for exporting pure JavaScript charts and saving into your server directory, you would need to install Batik library into your server with PHP export handler provided by FusionCharts.

 

So, please follow the steps mentioned in the "Exporting Pure JavaScript Charts > Setup your own server to process and export JavaScript charts" section of the documentation link: http://docs.fusioncharts.com/charts/contents/?exporting-image/ECPureJS.html

 

After setting all the steps mentioned, please ensure that the "temp" folder has proper write permission. Now good to go for exporting the charts into your server.

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi,

 

If you are looking for setting up your own server in PHP for exporting pure JavaScript charts and saving into your server directory, you would need to install Batik library into your server with PHP export handler provided by FusionCharts.

 

So, please follow the steps mentioned in the "Exporting Pure JavaScript Charts > Setup your own server to process and export JavaScript charts" section of the documentation link: http://docs.fusioncharts.com/charts/contents/?exporting-image/ECPureJS.html

 

After setting all the steps mentioned, please ensure that the "temp" folder has proper write permission. Now good to go for exporting the charts into your server.

 

Hope this helps!

 

i have tried all step , but correct me :

 

1. i put batik folder (which is contain batik-rasterizer.jar, and etc)

2.  edit "FCExporter_SVG2ALL.php"

 

define ('TEMP_PATH', 'temp/');
define ('BATIK_PATH', 'batik/batik-rasterizer.jar');
 
and when i click download icon (at top right corner) to pdf/image theres nothing happend
 
but a svn file, appear at temp folder.
 
post-62693-0-18142700-1400152674_thumb.png
 
here my file's server :
 
 
hope u can help me

Share this post


Link to post
Share on other sites

Hi,

 

It seems you have not set the path to the "FCExporter_SVG2ALL.php" and "index.php" file properly.

 

Please download the working sample, modify as per your server settings and test. Download link: https://www.dropbox.com/s/atcjnc0zdkhm80s/15886.zip

 

Hope this helps!

 

thx, but still not working. i dunno.. is it my server, or fusionchart server. im using XAMPP 

 

this is what i change based file's that u gave to me.

 

FCExporter_SVG2ALL.php

define ('TEMP_PATH', 'temp/'); //i put this code, and it works save as a svn file to temp folder

define ('BATIK_PATH', 'batik/batik-rasterizer.jar'); //this too

 

index.php

define("SAVE_PATH", "./ExportedImages/");

 

data.xml

exportEnabled='1' exportHandler='http://localhost/MyFirstChart1/MyFirstChart/index.php' exportAtClient='0' exportAction='save'>

 

still cannot download pdf, jpeg, and png file.

 

here my server 

http://www.sendspace.com/file/ikqizi

Edited by eza

Share this post


Link to post
Share on other sites

thx, but still not working. i dunno.. is it my server, or fusionchart server. im using XAMPP 

 

this is what i change based file's that u gave to me.

 

FCExporter_SVG2ALL.php

define ('TEMP_PATH', 'temp/'); //i put this code, and it works save as a svn file to temp folder

define ('BATIK_PATH', 'batik/batik-rasterizer.jar'); //this too

 

index.php

define("SAVE_PATH", "./ExportedImages/");

 

data.xml

exportEnabled='1' exportHandler='http://localhost/MyFirstChart1/MyFirstChart/index.php' exportAtClient='0' exportAction='save'>

 

still cannot download pdf, jpeg, and png file.

 

here my server 

http://www.sendspace.com/file/ikqizi

Hi,

 

Could you please send us the screenshot of the error you are facing?

 

Awaiting your response.

Share this post


Link to post
Share on other sites

Hi,

 

Could you please send us the screenshot of the error you are facing?

 

Awaiting your response.

 

sure..

 

the problem is, i cannot get "pdf, png or jpeg file" as a download file.

 

here the screenshoot

 

post-62693-0-28608600-1400311635_thumb.png

 

at that picture, as we can see.. im able to download a SVN file when i click "download as svg vector". but when i choose "download as pdf" or "download as png or image" there's no file that i get. why it happend? need help. thx

 

hope u can help me.

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please try once by setting the local file system path (complete) for "temp" folder and batik JAR file , as shown below, in "FCExporter_SVG2ALL.php" file?

 

FCExporter_SVG2ALL.php

define ('TEMP_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/temp/');
define ('BATIK_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/batik/batik-rasterizer.jar');

In case if this is what is not working, please check the response from "index.php" file, from browser > Developer Tool > Network Tab, after exporting the chart and provide a screen shot of it, for more clarity on the issue.

 

 

Awaiting your valuable response.

Share this post


Link to post
Share on other sites

Hi,

 

Could you please try once by setting the local file system path (complete) for "temp" folder and batik JAR file , as shown below, in "FCExporter_SVG2ALL.php" file?

 

FCExporter_SVG2ALL.php

define ('TEMP_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/temp/');
define ('BATIK_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/batik/batik-rasterizer.jar');

In case if this is what is not working, please check the response from "index.php" file, from browser > Developer Tool > Network Tab, after exporting the chart and provide a screen shot of it, for more clarity on the issue.

 

 

Awaiting your valuable response.

 

i did, and its not working when i choose "download as a pdf document".

 

here the screen shoot :

 

post-62693-0-46490800-1400683145_thumb.png

Share this post


Link to post
Share on other sites

Could you please show the response of "index.php" so that I can guess what error is in PHP Batik export handler?

 

Also, please find the working sample of Batik, for the Dropbox link: https://www.dropbox.com/s/188n32qiennfd0r/BatikSAMPLE_v3.3.1sr3_Eval.zip

 

Hope this helps!

 

i tried ur files.. i got error when i click "download as pdf, jpeg and png"

 

There was an error saving the chart. Error message undefined. Its DOM Id is undefined.

 

can  you tell me how solve this.

 

screenshoot

 

post-62693-0-50163500-1402586052_thumb.png

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Did you tried our sample, by changing the required URLs?

 

If yes, please provide a screen shot of the response of "index.php" file, from browser developer tool > Net tab. (please refer the screen shot for the same.)

 

Awaiting your valuable response.

 

post-23588-0-57938600-1402639256_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

Did you tried our sample, by changing the required URLs?

 

If yes, please provide a screen shot of the response of "index.php" file, from browser developer tool > Net tab. (please refer the screen shot for the same.)

 

Awaiting your valuable response.

 

hi..

 

yes i did. 

 

here my ScreenShoot

 

post-62693-0-73673300-1402830492_thumb.png

 

need ur best help.. thx

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please put the below line of PHP code inside the "raise_error()" method in your "index.php" file, as per the screen shot, so that we can identify the exact error cause the issue?

 

Ref. Code Snippet:

echo $code;

Also, if feasible you can share a live URL of your implementation, so that we can test the issue from our end. You can share the URL through <[email protected]>

 

Awaiting your valuable response.

post-23588-0-12929500-1402897511_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this