Hello there,
I work in a small team and we've been using EO.Pdf for quite some time now, and I can't say that we have encountered any problems - until now!
The project we're working on requires us to show complex diagrams in our PDF-documents, in order the render these diagrams and charts we use Telerik's Kendo UI library, and for some reason these components won't render when we output our PDF.
After some detective work online I found this thread which brought me to this forum:
got problem to call MVCToPDF when printing Ajax load document.. in that thread, the OP seems to have solved it by not mixing server-side and client-side rending of the Kendo-components, but as far as I can tell we are not mixing server- and client-side rendering like he did.
Another forum thread said that we need to increase the
MinLoadWaitTime to something around 3 seconds, this hasn't worked either as we have even tried setting it to 1 full minute, which should be more than enough time for the components to render.
Here's a snippet of our PDF-document with the component that we are trying to render:
Code: HTML/ASPX
<div class="box diagramHållare floatLeft">
@(Html.Kendo().Chart(Model.AvstegPerEnhet)
.Name("AvstegPerEnhet")
.Legend(legend => legend.Position(ChartLegendPosition.Custom).Offset(15, 265).Color("#666")
)
.Title(title => title.Text("Avsteg per enhet")
.Align(ChartTextAlignment.Left)
.Color("#666")
.Font("bold 14px Arial,Helvetica,sans-serif"))
.ChartArea(chartArea => chartArea.Background("transparent").Height(312).Margin(0, 0, 52, 0))
.SeriesDefaults(series => series.Bar().Overlay(ChartBarSeriesOverlay.None).Stack(true))
.Series(series =>
{
series.Bar(model => model.Antal).Name("Antal avsteg").Color("#fbaf3a");
})
.CategoryAxis(axis => axis
.Categories(model => model.Benämning)
.MajorGridLines(lines => lines.Visible(false))
.Color("#666")
)
.ValueAxis(axis => axis
.Numeric()
.Max(Model.AvstegPerEnhet.Max(x => x.Antal + 2))
.Line(line => line.Visible(false))
.MajorGridLines(lines => lines.Visible(true))
)
)
</div>
Our project uses ASP.NET MVC so our Model get's passed into the component via Razor web pages (
Model.AvstegPerEnhet)
I am at a loss as to what is causing this problem, and can't really see a way forward other than to try my luck by posting here ;)
We are using
EO.Pdf.Mvc Version=15.3.43.0Cheers!
// Mathias