|
Rank: Newbie Groups: Member
Joined: 6/13/2011 Posts: 2
|
Hi
I'm looking to create a ASP.NET web page that shows charts that use the Google Chart API, which renders data dynamically using javascript using VML (for internet explorer), SVG (other browsers) and flash. Which format used is dependent on the chart type and the browser. The page will have an export to PDF function. Will the html to PDF web control support this?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We support SVG, but not Flash. So it should work with all the SVG based charts. If Google can fall back with a static image (such as png or jpg) when Flash is not detected, then it will be fully supported.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 6/13/2011 Posts: 2
|
Hi - thanks for replying
and the fact that the charts are generated via Javascript using data that is found on the same page (ie the HTML tables) - would that be a problem?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
No. That would not be a problem. We have a built-in JavaScript engine that handles everything exactly the same as a Web browser. The only difference is currently we don’t allow third party plug-ins, that’s why it won’t do Flash. You may need to increase HtmlToPdf.Options.MinLoadWaitTime if it takes a while for your script to generate the chart: http://doc.essentialobjects.com/library/4/eo.pdf.htmltopdfoptions.minloadwaittime.aspxThis property controls the amount of time the convert waits between finishing loading the page and the moment it tries to "capture" the page output. So if it takes a while for your script to generate the chart but you capture the output too early, then the chart won't be there yet. Thanks
|
|