Sign in to follow this  
expresso

Printing a chart

Recommended Posts

I'm trying to add a button for the user to print a chart. I've tried the following javascript functions:

 

function printChart()

 

{

 

var chartToPrint = getChartFromId('Column3D');

 

chartToPrint.print();

 

}

 

 

 

I have added FusionChart.js to my application, the error I'm getting is chartToPrint.print() is not a function. Is there a file I'm missing? Am I doing something wrong?

 

We're controlling and generating the charts using a jsp page containing data in xml format.

 

 

 

Thank you.

Share this post


Link to post
Share on other sites

I have added the registerWithJS=1 to the parameters. Here's the object tag I'm using:

 

 

 

I'm still getting the same JavaScript error.

 

 

 

Where do I find the exact version? We got our Fusion Charts zip this month so I'm assuming the version is current. I only says Fusion Charts 3.0

 

 

 
















Edited by Guest

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