Add RadRadialGauge in Report

3 posts, 0 answers
  1. Nelson
    Nelson avatar
    1 posts
    Member since:
    May 2012

    Posted 13 Mar 2013 Link to this post

    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. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 18 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 18 Mar 2013 Link to this post

    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.
Back to Top