GridviewPdfExport

2 posts, 0 answers
  1. F
    F avatar
    1 posts
    Member since:
    Oct 2017

    Posted 06 Oct Link to this post

    Hello, 

    how can I change the "GridViewPdfExport.PageSize Property" from Default 210 x 297 mm to Din A 4 Landscape 297 x 210 mm?

    Namespace "Telerik.WinControls.Export" is imported.

    Using PdftoExport is not an option because I need the header feature. 

    I am using VB.Net.

    Thanks in advance,

    F. Schulze

  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 09 Oct Link to this post

    Hi, Frank,

    You can change the page size like this:
    var pdfExporter = new Telerik.WinControls.Export.GridViewPdfExport(this.radGridView1);
    pdfExporter.PageSize = new SizeF(297, 210);

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    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.
Back to Top