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

Export to PDF

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
safeer
Top achievements
Rank 1
safeer asked on 26 Aug 2010, 08:41 PM
Hi,
I am tying to export my grid to PDF but it fails. I am attaching my files and code; please have a look and help.
Here is my code to export.

      grd.ExportSettings.ExportOnlyData = true;
            grd.ExportSettings.IgnorePaging = true;
            grd.ExportSettings.FileName = "Retailer Scenario PL";
            grd.ExportSettings.OpenInNewWindow = true;
            grd.MasterTableView.ExportToPdf();

Is there any way I can change the font size and margins  of exported file?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Aug 2010, 07:47 AM
Hello Safeer,


RadGrid do not export any external styles. That means that your skins will not appear in the generated file. Still, the inline styles are preserved and should be used instead. The following documentation will help you in applying style for exported file.
PDF export



-Shinu.
Tags
Grid
Asked by
safeer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or