|
Rank: Newbie Groups: Member
Joined: 7/7/2016 Posts: 3
|
We currently have been using an older version of the EO.pdf dll (3.0.95.2). We recently started and update to the 4.6 framework. We also were looking to upgrade to the latest version of EO.pdf, but when I got the latest version from NuGet my asp:chart controls no longer render correctly in the new version. Our current process is to render the an aspx page and get the html using httpServer.Execute to then feed the html into the GenerateHtmlPdf. I am not sure why the latest version is not rendering the chart control.
Any help would be great. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,275
|
Hi,
Have you set HtmlToPdf.Options.BaseUrl correctly?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/7/2016 Posts: 3
|
The base url was not changed from the earlier version that was working.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,275
|
Hi, Please try the following: 1. Update to the latest build. We have just posted a new build that fixed an issue with MVCToPDF; 2. use ASPXToPDF/MVCToPDF instead; If your Chart uses session variables, then ASPXToPDF/MVCToPDF will automatically maintain that session. If you use ConvertHtml directly, the converter would be running in a different session than the original session in which the chart was created. If you still have problem with ASPXToPDF/MVCToPDF, please try to isolate the problem into a test project and send us the test project. Once we have that we will be happy to take a look. See here for details on how to send test project to us: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 7/7/2016 Posts: 3
|
Not sure the ASPXtoPDF is going to work for us I will look at it. I would like to get our current process working here is the image tag generated and sent as part of html that is not working (<img id="ctl00_Content_Main_ucPhysicalActivity_chart" BorderDashStyle="Solid" src="/Portal/Wellness/ChartImg.axd?i=chart_0898102b68ab4d2786bfacc0858f2033_8.png&g=94709a2b2ae4477d8ac81fd9d0a5449e" alt="" usemap="#ctl00_Content_Main_ucPhysicalActivity_chartImageMap" style="height:282px;width:600px;border-width:0px;" />). Only Dynamic images are not coming accross static images are fine. Does this help any to solve the issue in our current process so we don't have to look at a rewrite to ASPXtoPDF.
Thanks for all your help
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,275
|
Hi,
Please try ASPXToPDF first. This sounds exactly like a session variable issue. You will not get your dynamic image unless the converter gets the same session ID, which is not the case if you call ConvertHtml directly.
Thanks
|
|