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

RadHtmlChart PDF Export When Special characters were there

2 Answers 66 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Chary
Top achievements
Rank 1
Chary asked on 22 May 2014, 02:30 PM
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 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 27 May 2014, 08:51 AM
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.

 
0
Chary
Top achievements
Rank 1
answered on 28 May 2014, 08:46 AM
Hi Danial,

Thanks for the code it works fine.

Thanks,
Chary.
Tags
Chart (HTML5)
Asked by
Chary
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Chary
Top achievements
Rank 1
Share this question
or