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

Grid Export to PDF not displaying special character

2 Answers 485 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Veteran
Chuck asked on 15 May 2020, 05:14 PM
I have a grid form in ASP.Net VB.Net with the following Special Char "≤". It is appearing fine in the Web form and Excel export but the PDF it replaces with a # char. How can I get this character, ≤ to display.

2 Answers, 1 is accepted

Sort by
0
Accepted
Doncho
Telerik team
answered on 20 May 2020, 01:13 PM

Hi Chuck,

A possible reason for the experienced issue could be if the export font does not contain these symbols.

I suggest you try setting the DefaultFontFamily of the RadGrid's Pdf ExportSettings. You can set that property in the markup declaration or in the code-behind, see Fonts / Unicode support

ASPX code

<telerik:RadGrid ID="RadGrid1" runat="server">
    <ExportSettings>
        <Pdf DefaultFontFamily="Arial Unicode MS" />
    </ExportSettings>

 

Code-behind

 

RadGrid1.ExportSettings.Pdf.DefaultFontFamily = "Arial Unicode MS";

 

The most common international font is Arial Unicode MS because it covers all Unicode characters but you also may use any other font that will fit your needs. You can also try using Arial as it normally is built-in font.

I hope this will help

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Chuck
Top achievements
Rank 1
Veteran
answered on 20 May 2020, 01:26 PM
Thank you that Worked!
Tags
Grid
Asked by
Chuck
Top achievements
Rank 1
Veteran
Answers by
Doncho
Telerik team
Chuck
Top achievements
Rank 1
Veteran
Share this question
or