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?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
|
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.
|
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
|