We have an MVP.net app in which an report must be converted to a pdf file. We are using the free version actually, but we just bought the pro version yesterday (not yet installed in the project). When we convert report with big pictures some aren’t rendered. (see attachments)
BTW: I'm used to post under RobinLeblond (from the OIQ.com).
Thanks
Here is the code we use to do the conversion:
- Code: Select all
string reportPath = "somefile.pdf";
string url = this.Url.Action("ClientReport", "Damage", new { forceRefresh = Guid.NewGuid().ToString() }, this.Request.Url.Scheme);
Int32 w = 600;
Int32 h = 988;
HtmlConverter.Convert(url, reportPath, true, 60 * 1000, new SizeF(w.Value, h.Value), new PdfMargins(0, 0));