Welcome Guest Search | Active Topics | Sign In | Register

ASPXToPDF not getting Charting.Chart Options
Stark Botha
Posted: Monday, September 12, 2011 8:05:28 AM
Rank: Newbie
Groups: Member

Joined: 9/12/2011
Posts: 1
Hi there,

I'm trying to evaluate your product and have downloaded the demo package.

From here i included the two dll's into my project and followed the sample code in the web folder whereby i add ASPXToPDF to my page and then just run ASPXToPDF1.RenderAsPDF("notes.pdf");.

this is perfect as i cannot pass through a url (contains dynamic content built with session variables) and i dont think i can pass through html as i need the CSS to be included also.

Now what happens with this ASPXToPDF1 is that it does not render System.Web.UI.DataVisualization.Charting.Chart controls at all. Am i doing something wrong?

Please advise. This is exactly what i'm looking for if i can get the chart controls to render!
eo_support
Posted: Monday, September 12, 2011 9:49:14 AM
Rank: Administration
Groups: Administration

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

Please try to set the Chart control to render images into files. For example:

Code: HTML/ASPX
<asp:Chart .... 
    ImageStorageMode="UseImageLocation"
    ImageLocation="~/chart_images/#SEQ(100,10)">
    .....
</asp:Chart>


ImageStorageMode="UseImageLocation" specifies that the chart should create image files. ImageLocation specifies the location of the image files. "#SEQ(100,10)" instructs the Chart control to create 100 image files maximum with a life time of 10 minutes (you can change those numbers to fit your need), older files will be automatically cleaned up by the Chart control.

We are also working to allow the Chart control to work in the default HTTP handler mode. We will reply again once that is supported.

Thanks!
eo_support
Posted: Tuesday, September 13, 2011 11:22:11 AM
Rank: Administration
Groups: Administration

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

We have posted a new build (2011.2.68) that would automatically handle the charting using the default image storage mode (without creating any image files). You can download the new build from our download page. This build should solve the original problem for you.

Thanks!


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.