avinash

How to Print Fusion Chart

Recommended Posts

Hi Avinash,

We don't have the sample code, but a DLL which allows to save chart as image, and also to print the chart, but this DLL only works for WinForm.

Here are the code snippets that will show, how to use ChartToImage.dll.

private

void btnPrint_Click(object sender, EventArgs e)

{

  ChartToImage.ChartToImage.PrintChart(FC.Handle, FC.Width, FC.Height, false);

}

 

private void btnSaveChartImage_Click(object sender, EventArgs e)

{

 

ChartToImage.ChartToImage.GetChartImage(FC.Handle, FC.Width, FC.Height).Save("C:FusionCharts.jpg");

}

You can download the ChartToImage.dll from the Attachment.

NOTE: You need to add reference to ChartToImage.dll.

ChartToImage.zip

Share this post


Link to post
Share on other sites

Hi asavva,

 

 

 

FC.Handler is the Window Handler for ShockWave flash object, in WinForm application. It is just like hWnd property of control, If you are familiar with VB 6.0 or VC++.

 

 

 

Without specifying the FC.Handler, ChartToImage.ChartToImage function could not determine the rectangular area of the control.

 

 

 

Also if you are not able to get it work, then please read this thread from starting, and download all the files, as they are linked together.

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