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

    Hi,
    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).

    Thanks,
    Sukumar.
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 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:
    C#:
        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.


    Regards,
    Danail Vasilev
    Telerik
     

    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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.

    Thanks,
    Chary.
Back to Top