RadHtmlChart PDF Export When Special characters were there

3 posts, 0 answers
  1. Chary
    Chary avatar
    13 posts
    Member since:
    Apr 2014

    Posted 22 May 2014 Link to this post

    I am trying to export RADHtml Chart to PDF using the inkscape as suggested in one of the telerik blogs,but when I export a Radhtml chart which is having special characters like '^,~' I am unable to see the complete text after export,you can find this from attached document which contains two files one shows the chart before export and other is after exporting , so can you please let me know how to export with out these truncations in text (In the attached files the row data is being truncated).

  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 27 May 2014 Link to this post

    Hello Sukumar,

    Passing System.Text.Encoding.Default as a second parameter to the HttpUtility.UrlDecode method fixes the issue on my side. For example:
        protected void Button1_Click(object sender, EventArgs e)
            //obtain the necessary settings for exporting the chart
            HtmlChartExportSettings currentSettings = new HtmlChartExportSettings();
            currentSettings.Height = (int)RadHtmlChart1.Height.Value;
            currentSettings.Width = (int)RadHtmlChart1.Width.Value;
            //decodes the SVG string saved from the client
            string svgText = HttpUtility.UrlDecode(svgHolder.Value, System.Text.Encoding.Default);

    More information on the matter is available in this blog post.

    Danail Vasilev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Chary
    Chary avatar
    13 posts
    Member since:
    Apr 2014

    Posted 28 May 2014 in reply to Danail Vasilev Link to this post

    Hi Danial,

    Thanks for the code it works fine.

Back to Top