Welcome Guest Search | Active Topics | Sign In | Register

Problems displaying Charting.Chart when using ASPXToPDF Options
D Miller
Posted: Thursday, October 25, 2012 2:21:24 PM
Rank: Newbie
Groups: Member

Joined: 10/25/2012
Posts: 2
I have only seen a couple of threads on this, and have not been able to get it to work yet.

When I generate the PDF, the PDF comes up just fine except that there is no data in the chart (lines, bars, etc.). I have tried forcing the chart to save as an image, using ImageStorageMode="UseImageLocation" ImageLocation="~/#SEQ(100,10)" in the markup for the chart option. I have also tried increasing the wait time in the code-behind, like this:

EO.Pdf.HtmlToPdf.Options.MinLoadWaitTime = 2000
ASPXToPDF1.RenderAsPDF()

It looks like there was some effort on dealing with this in the 2011 version. I am using 2012. Any updates?

Thanks!
eo_support
Posted: Thursday, October 25, 2012 2:35:23 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

This usually has to do with sessions. You may want to check your IIS log to see if you can see why the chart failed. Usually even if the chart fails, you should see a small blue image that indicates it's trying to fetch the chart from the server, but failed (similar to the IE's red cross image when it couldn't load the image). To us the chart is just another image that your server gives to us. So if it fails, usually it's because somehow your server refuses it give that image to us, so you will have to check your server side logs to find out the root cause for that.

Thanks!

D Miller
Posted: Thursday, October 25, 2012 6:31:54 PM
Rank: Newbie
Groups: Member

Joined: 10/25/2012
Posts: 2
Thanks - it turned out I just needed to refresh the charts with data when doing the render. Things seem to be working now.
eo_support
Posted: Thursday, October 25, 2012 6:40:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Cool. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.