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

2 posts, 0 answers
  1. Miky
    Miky 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. Angel Petrov
    Admin
    Angel Petrov avatar
    1007 posts

    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