This is a migrated thread and some comments may be shown as answers.

Save RadGauge to PDF

1 Answer 50 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Shawntel
Top achievements
Rank 1
Shawntel asked on 25 Mar 2016, 09:51 PM

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!

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 30 Mar 2016, 10:50 AM
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.
Tags
Gauge
Asked by
Shawntel
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or