Welcome Guest Search | Active Topics | Sign In | Register

ASP to PDF Options
Phil
Posted: Friday, January 4, 2013 8:40:39 AM
Rank: Newbie
Groups: Member

Joined: 9/13/2012
Posts: 2
Hi,

We would like to simply have the user click and save the page they are viewing for archival purposes.

In using ASP to PDF, it appears that the page is not completely rendering before it is saved such that sometimes the graphics (static gifs) aren't PDF'ed and most of the time our graphs (using MS chart controls) are missing from the PDF output. We can do multiple runs and get different results (i.e. sometimes graphs appear and sometimes not).

The aspx page is layed out as a table with 2 columns and multiple rows. And the code is simply:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim FileName as string = "Test.pdf"

Display_Program_Metrics() 'Display static data on page
Show_Program_CMSII_Chart() 'Fetch data from data base and graph both charts

ASPXToPDF1.RenderAsPDF(FileName)

End Sub


We are using IIS/Win 2003 server and the web server is located in the same building (Intranet not Internet connections). Is there some setting that we can use to fix this problem? Possibly delay the ASPX to PDF rendering until the page is fully loaded?




eo_support
Posted: Friday, January 4, 2013 9:26:49 AM
Rank: Administration
Groups: Administration

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

Yes. You can try to increase the value of this property:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdfoptions.minloadwaittime.aspx

Thanks!
Phil
Posted: Friday, January 4, 2013 9:32:50 AM
Rank: Newbie
Groups: Member

Joined: 9/13/2012
Posts: 2
You're pointing to a setting in html to pdf. I need a setting for asp to pdf.
eo_support
Posted: Friday, January 4, 2013 9:58:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
They are the same. Internally ASPXToPDF uses HTML to PDF to do the conversion, so almost all HTML to PDF options work with ASPXToPDF.

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.