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

Margins on PDF export?

2 Answers 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 26 Apr 2011, 05:41 PM
Hi, I have been asked to reduce the margins when exporting grid contents to PDF, is this possible?  If so, how?

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 27 Apr 2011, 10:11 AM

Hi Kjell,

One way to modify the margins is by using the SectionDefaultPageMargin property. Simply modify the export logic by adding the following line:

document.SectionDefaultPageMargin = new Telerik.Windows.Documents.Layout.Padding(0, 0, 0, 0);

This will remove all margins. Of course you can define the margins that work for your case.

Hope this helps.


Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kjell
Top achievements
Rank 1
answered on 27 Apr 2011, 05:19 PM
Perfect, thanks.
Tags
GridView
Asked by
Kjell
Top achievements
Rank 1
Answers by
Milan
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or