Convert Grid and Chart with custum lines inside a Grid to PDF

Thread is closed for posting
2 posts, 0 answers
  1. B7B6236D-3906-45B7-BE8C-A3B3F9F992AE
    B7B6236D-3906-45B7-BE8C-A3B3F9F992AE avatar
    13 posts
    Member since:
    Dec 2011

    Posted 27 Feb 2013 Link to this post

    Requirements

    RadControls for ASP .NET AJAX Q3 2012 and later
    .NET version 3.5 and later
    Visual Studio version 2008 and later
    Programming language C#
    Browser support

    all browsers supported by RadControls fro ASP .NET AJAX


    PROJECT DESCRIPTION
    This sample demonstrate five concepts:
    1. Export to PDF a RadGrid inside a RadGrid;
    2. Use RadGrid as a layout to present your page and then convert the whole concent into PDF using the integrated PDF convertion of the RadGrid;
    3. Draw custom lines in a RadChart;
    4. Export RadCharts to PDF from the RadGrid layout without using physical images;
    5. Change the resolution of the RadChart between screen and PDF to enhance your quality.

    Just compile it and you'll see the result right away on the screen, then push the "Export to PDF" to see the PDF.

    For the ChartGenerator, I personnaly would do one generator per design of chart you plan to use in your solution
    so you would need less data to travel from the page to the generator. KISS

    I use the Handlers fro the RadChart because most custom objects in a RadGrid are not converted to a PDF, but a simple image is.

    I use memory stream so I don't have to leave physical images on the server.



  2. DF7D1A30-6166-46E3-8A25-1BDF36B1ACD1
    DF7D1A30-6166-46E3-8A25-1BDF36B1ACD1 avatar
    1155 posts
    Member since:
    May 2017

    Posted 04 Mar 2013 Link to this post

    Hello Michel,

    Thank you for sharing your knowledge with the community. As a token of gratitude I have updated your Telerik Points.

    All the best,
    Angel Petrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top

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