Recommended Posts

I'm trying to setup server side export and I havo trouble with XLSX and CSV export. Response I get &DOMId=&height=0&width=0&fileName=&statusMessage= Export Resource not found.&statusCode=0.

FCExport requires IMAGE-DATA2XLSX file. How can i fix this problem?

Share this post


Link to post
Share on other sites

I don't think so that it depends on type, because it repeats on different types.

But type - pie2d, stackedbar2d, scrollcolumn2d. Version - 3.15.1

Share this post


Link to post
Share on other sites

Also I have question if I set export mode to save-download, can I make that png files will be only saved on server and not downloaded to user

Share this post


Link to post
Share on other sites
5 minutes ago, Ayan Bhadury said:

Please check the demo - http://jsfiddle.net/7twk8g46/

$dataSource['chart']['exportHandler'] = ChartsHostUrl . 'ExportHandlers/PHP/3.15.1/ServerFCExporter.php';

Your demo doesn't include private handler.

Complete list of parameters:

$dataSource['chart']['exportHandler']       = ChartsHostUrl . 'ExportHandlers/PHP/3.15.1/ServerFCExporter.php';
$dataSource['chart']['exportEnabled']       = '1';
$dataSource['chart']['exportAtClient']      = '1';
$dataSource['chart']['exportTargetWindow']  = '_blank';
$dataSource['chart']['exportMode']          = 'client';
$dataSource['chart']['exportAction']        = 'save';

All image export and PDF works, but CSV and EXCEL fails because of required stream type IMAGE-DATA

Edited by Vitas

Share this post


Link to post
Share on other sites

It will be saved to the location you have specified, if you could restrict the download to the user you can implement that at your end. FusionCharts natively does not provide the option.

3 minutes ago, Vitas said:

Also I have question if I set export mode to save-download, can I make that png files will be only saved on server and not downloaded to user

 

Share this post


Link to post
Share on other sites
36 minutes ago, Vitas said:
$dataSource['chart']['exportHandler'] = ChartsHostUrl . 'ExportHandlers/PHP/3.15.1/ServerFCExporter.php';

Your demo doesn't include private handler.

Complete list of parameters:

$dataSource['chart']['exportHandler']       = ChartsHostUrl . 'ExportHandlers/PHP/3.15.1/ServerFCExporter.php';
$dataSource['chart']['exportEnabled']       = '1';
$dataSource['chart']['exportAtClient']      = '1';
$dataSource['chart']['exportTargetWindow']  = '_blank';
$dataSource['chart']['exportMode']          = 'client';
$dataSource['chart']['exportAction']        = 'save';

All image export and PDF works, but CSV and EXCEL fails because of required stream type IMAGE-DATA

Here is a PHP implementation - https://repl.it/repls/RightMonumentalSymbols#index.php
Live link - https://rightmonumentalsymbols--five-nine.repl.co/

Share this post


Link to post
Share on other sites

Please share a demo replicating the problem along with all the dependencies, with the steps to execute the project so that I could check at my end.

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