Export to PDF

2 posts, 0 answers
  1. safeer
    safeer avatar
    14 posts
    Member since:
    Nov 2006

    Posted 26 Aug 2010 Link to this post

    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;

    Is there any way I can change the font size and margins  of exported file?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Aug 2010 Link to this post

    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

Back to Top