Articles in this section

How to export report with Unicode fonts to PDF in ReportViewer

 

WinRT ReportViewer does not have direct support for Exporting Unicode text to PDF. As WinRT does not provide access to installed font data, Unicode fonts cannot be embedded directly. Instead, the Unicode font files can be added as an embedded resource to the application. The Unicode font streams need to be added to the ReportViewer’s PDFFonts collection to export report as PDF format with Unicode fonts as shown in the below code snippet.

C#

ReportViewer.PDFFonts = new Dictionary<string, Stream>(StringComparer.OrdinalIgnoreCase);
ReportViewer.PDFFonts.Add("MS Mincho", assembly.GetManifestResourceStream("WinRTSampleApplication.Assets.msmincho.ttf"));

 

Sample Link:

 

http://www.syncfusion.com/downloads/support/directtrac/128729/ze/export_the_PDF_with_external_PDF_fonts695912431.zip

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied