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

Add RadRadialGauge in Report

2 Answers 126 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 13 Mar 2013, 09:09 PM
I would like insert a RadRadialGauge in a Report.
I tried export ou convert it to Image as byte array or FileStream, this way i could insert as PictureBox.

Do you have a solution for this ?!? 
Can I export RadRadialGauge to a Image object ?!?
Can I insert RadRagial Gauge to a report ?!?

Wainting answer.

Tks

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 18 Mar 2013, 04:46 PM
Hello Nelson,

The RadHtmlChart renders entirely on the client-side through JavaScript, so that it cannot be accessed and exported directly like the RadChart. You can, however, use the getSVGString() method to pass the SVG of the chart to a third party software that can convert it to a common image format like a PNG and PDF. This code library will spread more light on how to do that.

You can export the HtmlChart to a PNG format and then insert it into the report through a PictureBox. More information about that is available in PictureBox help article

Kind regards,
Danail Vasilev
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.
0
Danail Vasilev
Telerik team
answered on 18 Mar 2013, 04:59 PM
Hi Nelson,

I have missed to point out that the RadGauge and RadHtmlChart use the same rendering mechanism, so that the exporting of the RadGauge is done in a similar way as the export for RadHtmlChart. The difference is the way of getting the SVG string from the RadGauge which is the following JavaScript line:

oGauge._gaugeObject.svg();

where oGauge is a reference to the desired RadGauge:

All the best,
Danail Vasilev
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.
Tags
Gauge
Asked by
Nelson
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or