Save RadGauge to PDF

2 posts, 0 answers
  1. Shawntel
    Shawntel avatar
    1 posts
    Member since:
    Dec 2013

    Posted 25 Mar Link to this post

    I am running asp.net framework 4.0; Windows 10; Telerik UI for ASP.NET AJAX v2015.2.729.40

    In a webforms asp.net project, I have created multiple RadGauges in my C# codebehind, using data pulled from a SQL Server database. Now I need to do one or more of the following:

    -save the RadGauges to PDF or as an image file (that can later be emailed)--preferably mutiple gauges per file;

    -OR email the gauges

    -OR print the gauges

    If I can do the FIRST option, I can, obviously do the other two...

    I have searched and searched for several days to attempt to do this on my own before sending in a request...and I simply cannot seem to work this out. Can someone assist me? Thanks in advance for any assistance!

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 30 Mar Link to this post

    Hello Shawntel,

    To export the RadGauge you can use the RadClientExportManager. See an example with the chart control which uses the same logic for the gauge - http://demos.telerik.com/aspnet-ajax/client-export-manager/applicationscenarios/export-radhtmlchart/defaultcs.aspx?product=htmlchart

    Once you do the export you can use Web API to send the image to the server - http://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/how-to/save-exported-files

    Regards,
    Danail Vasilev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top