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.

Wrong currency icon when export DataTable to PDF file

Thread ID:

Created:

Updated:

Platform:

Replies:

117803 Dec 17,2014 10:25 PM Dec 18,2014 11:05 PM ASP.NET Web Forms (Classic) 3
loading
Tags: PDF
nguyennt
Asked On December 17, 2014 10:25 PM

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 12:00 AM

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 01:37 AM

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

Thanks
Nguyen

Praveenkumar H [Syncfusion]
Replied On December 18, 2014 11:05 PM

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.

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.

;