Welcome Guest Search | Active Topics | Sign In | Register

ASP.net Chart control Options
MBCBrian
Posted: Thursday, July 7, 2016 2:03:38 PM
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.
eo_support
Posted: Thursday, July 7, 2016 2:25:37 PM
Rank: Administration
Groups: Administration

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

Have you set HtmlToPdf.Options.BaseUrl correctly?

Thanks!
MBCBrian
Posted: Thursday, July 7, 2016 2:34:49 PM
Rank: Newbie
Groups: Member

Joined: 7/7/2016
Posts: 3
The base url was not changed from the earlier version that was working.
eo_support
Posted: Thursday, July 7, 2016 5:20:37 PM
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.aspx

Thanks!
MBCBrian
Posted: Friday, July 8, 2016 10:48:13 AM
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&amp;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
eo_support
Posted: Friday, July 8, 2016 10:51:37 AM
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


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.