Wrong currency icon when export DataTable to PDF file

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


3 Replies

PH Praveenkumar H Syncfusion Team 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

 



NG nguyennt December 18, 2014 06:37 AM UTC

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

Thanks
Nguyen


PH Praveenkumar H Syncfusion Team 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

Loader.
Up arrow icon