cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal report Chinese characters export to PDF not working

0 Kudos

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

former_member763929
Participant
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with Community Q&A , as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your Profile you encourage readers to respond.

View Entire Topic
robert_willson
Explorer
0 Kudos

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.