This is a migrated thread and some comments may be shown as answers.

Export pdf does not export all pages

3 Answers 161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dev
Top achievements
Rank 1
dev asked on 03 May 2017, 03:26 PM

We are trying to export all pages of a grid to a pdf, but only the displayed page is exported to the pdf. The problem seems to be linked to using PaperSize, since it works when we remove it, but then we see the pager on each page. Here is the code we are using for the export :
    .Pdf(pdf => pdf
        .AllPages()
        .AvoidLinks()
        .PaperSize("A4")
        .Margin("2cm", "1cm", "1cm", "1cm")
        .RepeatHeaders()
        .TemplateId("page-template")
        .FileName("store.pdf")
        .Scale(0.8)
        .ForceProxy(true)
        .ProxyTarget("_blank")
        .ProxyURL(Url.Action("ExportToPdf", "Reports"))

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 May 2017, 09:57 AM
Hello,

We have a similar known issue which is reproduced when the Grid is not scrollable. And when the Wrappers for ASP.NET Core are used, the Grid is not scrollable by default.

I'm glad to inform you that the issue is fixed in the latest version of Kendo UI.

To ensure that this is the same issue, please update to the latest version, or make the Grid scrollable:

.Scrollable()

If the issue still occurs, please send a fully runnable example and I will gladly assist.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
dev
Top achievements
Rank 1
answered on 08 May 2017, 01:52 PM

Hi Stefan,

I've upgraded my Telerik.UI.for.AspNet.Core package to version 2014.2.504 and the export issue still persists if I do not make the grid scrollable. However, setting

.Scrollable()

like you suggested does indeed fix the problem.

Thanks for the workaround

0
Stefan
Telerik team
answered on 11 May 2017, 07:17 AM
Hello,

I'm glad to hear that the export is working as expected.

I will forward this to the developer's team to further investigate if the issue occurs with other combinations of settings as well.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Grid
Asked by
dev
Top achievements
Rank 1
Answers by
Stefan
Telerik team
dev
Top achievements
Rank 1
Share this question
or