Export to PDF

Thread is closed for posting
9 posts, 1 answers
  1. Answer
    4E104FA7-DE4F-4AE2-9731-E1E7E1EC71E2
    4E104FA7-DE4F-4AE2-9731-E1E7E1EC71E2 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. BF42EC85-B935-4155-BBB8-2DF2BAB6B5E8
    BF42EC85-B935-4155-BBB8-2DF2BAB6B5E8 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. 5E795A8D-1464-4FBE-A64A-E23FEB96A647
    5E795A8D-1464-4FBE-A64A-E23FEB96A647 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. 4E104FA7-DE4F-4AE2-9731-E1E7E1EC71E2
    4E104FA7-DE4F-4AE2-9731-E1E7E1EC71E2 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. 5E795A8D-1464-4FBE-A64A-E23FEB96A647
    5E795A8D-1464-4FBE-A64A-E23FEB96A647 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. 0F5729F5-BB6B-45FE-86DA-61A5221B23D5
    0F5729F5-BB6B-45FE-86DA-61A5221B23D5 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. 924B99CB-FDFD-496F-81A1-57F7836E070D
    924B99CB-FDFD-496F-81A1-57F7836E070D 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. 03C6DCCC-BDEA-48C2-8B34-F4A2A58C63A8
    03C6DCCC-BDEA-48C2-8B34-F4A2A58C63A8 avatar
    3769 posts
    Member since:
    Aug 2017

    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. 03C6DCCC-BDEA-48C2-8B34-F4A2A58C63A8
    03C6DCCC-BDEA-48C2-8B34-F4A2A58C63A8 avatar
    3769 posts
    Member since:
    Aug 2017

    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

This Code Library is part of the product documentation and subject to the respective product license agreement.