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

Exporting to PDF auto fit data

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ZR
Top achievements
Rank 1
ZR asked on 29 Oct 2012, 07:46 PM
Hi,

I've a radgrid and I export the contents to PDf.

1) How do I auto-fit my page height and page width to the data. I do not want to hard code values for page height and page width in my aspx. PDF need to automatically adjust according to the data in the grid.

2) How do I automatically open up a pdf with "75%" resolution while clicking the' export to PDF" button

Please explain with code samples.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 01 Nov 2012, 12:07 PM
Hi Zaheka,

If you do not set width of the columns the grid will automatically adjust according to the data in the grid. Note that there is no such property which sets the resolution of the pdf file. It depends of the items in the grid and  the size of the page sheet.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
ZR
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or