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

GridviewPdfExport

1 Answer 131 Views
GridView
This is a migrated thread and some comments may be shown as answers.
F
Top achievements
Rank 1
F asked on 06 Oct 2017, 11:58 AM

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

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Oct 2017, 08:56 AM
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.
Tags
GridView
Asked by
F
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or