3
Answers

Unable to display Unicode characters to my crystal report (.rpt)

anand m

anand m

1y
1.7k
1

Hello All,

I am unable to print Unicode characters(chinese) in the Crystal report (.rpt) once loaded in page using asp.net(.aspx).

Using below code its working for Non-unicode characters , but not working for Unicode characters and even I updated crystal report(.rpt) to font setting to Arial Unicode from the report end.

My code  converting to PDF :

cryRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, @"\\**********\**\**\" + TextBox1.Text + "");
FileInfo fileinfo = new FileInfo(@"\\**********\**\**\" + TextBox1.Text + "");
Response.AddHeader("Content-Disposition", "inline;filenam=demo.pdf");
Response.ContentType = "application/pdf";
Response.WriteFile(fileinfo.FullName);

Suggest any thing need to update this code to work on Unicode characthers to dispaly in the report.

Currently I am getting  square boxes in the Unicode code using above code.

Please help in this to fix this issue.

Answers (3)