Export to PDF

9 posts, 1 answers
  1. Answer
    Simon
    Simon avatar
    32 posts
    Member since:
    Apr 2007

    Posted 18 Nov 2010 Link to this post

    Requirements

    RadControls version

    2010 Q3
    .NET version

    4.0
    Visual Studio version

    2010
    programming language

    C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    This code snippet exports the data in the RadGridView into a PDF format using the new DocumentFormatProvidersManager capability of exporting to PDF. It doesn't matter what format you used to populate as the data is first exported to CSV and then parsed and exported to PDF dynamically so unlike the other example which can only export 4 columns this will export all your columns + data.
  2. k f
    k f avatar
    109 posts
    Member since:
    Jun 2006

    Posted 04 Dec 2010 Link to this post

    Hello Simon,

    Do you know if the DocumentFormatProvidersManager  will allow you to read in different file formats?  I have a scenario where we need to read in Tiff files.  There are a couple 3rd party controls out there but they are priced a bit too high for my tastes.

    Thanks.
  3. loraine
    loraine avatar
    30 posts
    Member since:
    Apr 2011

    Posted 26 Apr 2011 Link to this post

    hi simon!

    thanks for posting your code :)

    i would like to ask why you have to export the radgridview to csv?
    thanks again!
  4. Simon
    Simon avatar
    32 posts
    Member since:
    Apr 2007

    Posted 26 Apr 2011 Link to this post

    Hello Loraine

    It was to allow for the parsing of the information. So I exported it to CSV so it was easily readable.

    Regards,
    Simon
  5. loraine
    loraine avatar
    30 posts
    Member since:
    Apr 2011

    Posted 26 Apr 2011 Link to this post

    ahhh, ok..

    in your code, the color of the background and foreground of the row data can't be changed... but in other "export to pdf" codes, it works... how can i allow changing the color of the background and foreground of the row data using your export to pdf code?

    thanks :)
  6. Karthik
    Karthik avatar
    2 posts
    Member since:
    May 2011

    Posted 07 Jul 2011 Link to this post

    Hello Simon,

    Thanks for Code :)

    I added few more class variables , I exported to PDF  . Data's are not fitting to page . It is wrapping within Column.

    I want to Display RadGridView in A4 Landscape. 
    How to achieve this . 
    Please help me

    Thanks & Regards 
    Karthik
  7. Mani
    Mani avatar
    2 posts
    Member since:
    Apr 2012

    Posted 13 Dec 2012 Link to this post

    I am getting error,

    "Dialogs Must be user -initiated"

    How to fix this.
  8. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Dec 2012 Link to this post

    Hello,

    Would you please post more detailed information about the problem? For example are you trying to open for example SaveFileDialog from a non user initiated event? 

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 24 Dec 2012 Link to this post

    Hello,

    In addition to the original post, I have attached a demo project showing how you can implement a Print and PrintPreview with the help of RadDocument and RadRichTextBox.
     

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top