Srinivas Kalapala

PDF and Excel Export

Recommended Posts

Hi All,

   AM new to Fusion charts and MVC.

In our current project, we are rendering charts in a div along with a table below the chart. Now we need to add a Excel and PDF export to the charts including the Table in the DIV. I can use Fusion charts  exportenabled property , but i can get only the chart not with the table. 

How i can read the complete Div data .

Thank you in Advance.

Share this post


Link to post
Share on other sites
Hi

 

It is not possible to export whole web page using FusionCharts natively. It can be achieved using PhantomJS and below are the steps how it can be done:

 

PhantomJS is a headless WebKit script-able with a JavaScript API. It has fast and native support for various web standards.

 

To save a chart image using PhantomJS, without rendering it in a browser, follow the steps below:

  1. Choose the download for your Operating System and Download PhantomJS.
  2. Extract the files into your application folder along with the other FusionCharts JavaScript files.
  3. Copy the  `savePDF.js` file. It can be obtained using this link.
 

To execute from a command line use the command: 

`phantomjs savePDF.js [--delay ]  [--scale ] TheURLOfAnyDashboard outputFileName`

 


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