on 12-30-2021 11:26 AM
Hello All,
I need your support on the below Crystal report data contains Chinse character(Unicode).
My issue is when we use this export method using Report client document com object it is not supporting chinese character(Unicode) and it is displaying the boxes when export to PDF.
But when I opened the report.rpt file and preview , print to PDF i am able to display chinese characters perfectly.
When I am using this COm object export property to PDF its getting boxes instead of displaying chinese character , Please help us technically to resolve this issue.
I need all yours strong support to resolve this issue.
Below is the code I am unable to print chinese characters:
'Create a new ReportClientDocument object for this reportAppSession
Set localoClientDoc = localrptAppSession.CreateService("CrystalClientDoc.ReportClientDocument")
'Create a new PrintOutputController object
Dim localoPrintOutputController
Set localoPrintOutputController = localoClientDoc.PrintOutputController
Dim localiFormat
localiFormat = CInt("5")
Dim localoByteArray
Set localoByteArray = localoPrintOutputController.Export(localiFormat)
localoByteArray.Save localPhysicalPDFFileName, True(saving in PDF).
Thanks
Anand
I have had the same problem, Times New Roman font shows the Chinese characters on preview, but then it turns to boxes after conversion to PDF. There is some kind of font issue, when I change to SimSun font, everything works. There may be other fonts that also work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.