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

When exporting to pdf, aggregate row is appearing on a new page

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 04 Jan 2018, 08:29 AM

Hello. When I am exporting to PDF, the aggregate row is displaying on a new page though there is space in the previous page. See attached file.

The settings for generating the pdf are as follows:

              .Pdf(pdf => pdf
              .AllPages()
              .PaperSize("A4")
              .Scale(0.6)
              .Margin("30mm", "10mm", "30mm", "10mm")
              .Landscape()
              .RepeatHeaders()
              .TemplateId("page-template")
              .FileName("Combined Summary Report.pdf")
              .ProxyURL(Url.Action("Pdf_Export_Save", "CombinedSummaryReport"))
          )

 

I have tried changing the values for the top and bottom margins, but then some records are not displaying.

Any help will be much appreciated.

Thanks

 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Jan 2018, 09:50 AM
Hello, Daniel,

Thank you for providing the PDF.

The observed result occurs because the paper size "A4" has fixed dimensions and if the content does not fit, it will be displayed on the next page.

In this scenario we can suggest using the page-break property of the PDF export which will allow breaking the page content using custom logic to better fit the scenario and the requirements:

https://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#configuration-Multi-Page

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Daniel
Top achievements
Rank 1
answered on 16 Jan 2018, 08:24 AM
Thanks Stefan. I will try to use the page-break property.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or