We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Wrong currency icon when export DataTable to PDF file

Thread ID:

Created:

Updated:

Platform:

Replies:

117803 Dec 18,2014 03:25 AM UTC Dec 19,2014 04:05 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: PDF
nguyennt
Asked On December 18, 2014 03:25 AM UTC

Hello everyone

I have a Datatable like this 

enter image description here

I use PdfLightTable of syncfusion version 7.403.0.20 to export PDF but some currency icon is wrong.

enter image description here

Please help me to resolve it

many thanks


Praveenkumar H [Syncfusion]
Replied On December 18, 2014 05:00 AM UTC

Hi,

Thank you for using syncfusion products,

Please use the PdfTrueTypeFont with Unicode enabled to preserve the Unicode characters.

Please find the code snippet.

Syncfusion.Pdf.Tables.PdfLightTable pdfLineItemsTable = new Syncfusion.Pdf.Tables.PdfLightTable();

//Set font

PdfFont font = new PdfTrueTypeFont(new Font("Arial", 12), true);

 

//Setting the border to transparent pen

PdfPen borderPen = new PdfPen(PdfBrushes.Transparent, 10);

PdfCellStyle cellStyle = new PdfCellStyle(font, PdfBrushes.Black, borderPen);

cellStyle.BorderPen = borderPen;

pdfLineItemsTable.Style.DefaultStyle = cellStyle;

 

Please try this and let us know your result.

 

With Regards,

Praveen

 


nguyennt
Replied On December 18, 2014 06:37 AM UTC

Hi Praveenkumar H
It work for me. Thank you so much for helping me

Thanks
Nguyen

Praveenkumar H [Syncfusion]
Replied On December 19, 2014 04:05 AM UTC

Hi Nguyen,

We are happy to know that your issue get resolved.

Please let us know if you need further assistance.

With Regards,
Praveen

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;