Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax chart not rendering in Pdf Using pechkin asp.net c#

$
0
0

i have been using Pechkin (wkhtml wrapper for c#) to create pdf reports in my project and its working fine except i cant render any ajax chart(pie, bar, bubble or anything) in my created pdf, i have also tried rederdelay property but it didnt help me a bit.

the text data comes but the chart doesnt and the whole thing mess up. So i deduced that the problem is because created charts are not using standard html for the wrapper to handle, so in conclusion i need something which can convert these chart to images before html render on fly and it should be OpenSource/free.

this is the code if it helps in any means:

byte[] pdfBuf = new SynchronizedPechkin(new GlobalConfig()).Convert(new ObjectConfig().SetCreateExternalLinks(true).SetPrintBackground(true).SetScreenMediaType(true).SetRenderDelay(10000).SetIncludeInOutline(true).SetRunJavascript(true).SetFallbackEncoding(Encoding.ASCII).SetLoadImages(true).SetAllowLocalContent(true).SetPageUri("http://localhost:8540/EPAATHSHALA/student/result.aspx"));
File.WriteAllBytes(Server.MapPath("~/testpdf/"+DateTime.Now.Ticks+".pdf"), pdfBuf);



thanks Alok

P.S. I am using ajax control toolkit charts, pechkin is latest install from nuGet.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>