Sign in to follow this  
santhosh91

Exporting Charts To Pdf

Recommended Posts

We have a special requirement where we are supposed to print whole page which is laid out in four quadrants. Each quadrant is kind of tab control which hosts two fusion charts. We have to export whole page along with charts to pdf.

 

On the page, we have a print to pdf button when clicked should automatically print the portion of page excluding the navigation pane on left and top. The approach we took is to scrap the html and pass it over to controller action which loads in a web browser control (System.Windows.forms) and we generate a image from web browser and insert the image into PDF. In nutshell, we not only need charts but also peripheral html to mimic UI layout for the print..

 

But, the challenge is fusion charts are not rendered in web browser control. Also, we don't want to see any fusion charts specific controls or dialog boxes on UI for the print to work.. It should seamlessly pick up charts and insert them in appropriate quadrants in print page..

 

how can we utilize export to Image functionality from behind the scenes and insert them into our html file?

Share this post


Link to post
Share on other sites

Hi Santhosh,

 

Even i am facing the same issue . My requirement is similar to yours. In my case sometimes chart is rendered and in some cases it wont . So, I am looking for the logic where in i can check whether chart is rendered or not. I tried loading Fusioncharts.js in the webbrowser to check whether FC_Rendered method is called or not. But no luck FC_rendered method is not beeing called. Please help me if you get any solution to this.

 

Regards,

Singh.

Edited by singh

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