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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Classic ASP has not been supported for years, time to upgrade to Managed Code in VS 2010->2019 and the latest and only .NET runtime supported and available now:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Or using the BOE/CRS .NET runtime.

Likely cause is the MS font I believe is licensed now or because it's not available under the WEB account.

Try installing the font under that local Admin account.

If you open the PDF and look at the properties and font tab you'll see it's been replaced.

Answers (2)

Answers (2)

ido_millet
Active Contributor

Crystal Reports requires font embedding permissions when exporting to pdf.

So change the font or acquire the same font but with embedding permissions.

Hello Millet,

Crystal report rpt which i am calling in Classic asp code i already updated font as"Arial Unicode MS" .
When i try to open .rpt and provided input parameters and click on Print to PDF i am able to chinese characters.

Issue with when i am trying to access that rpt from code and export PDF its not working , see my code pasted above question.

Let me know who i need to work in code base to work chinese character(unicode) when i am export to PDF.

Thanks

Anand.

0 Kudos

Thank you, I tried to install the font "Arial Unicode MS" and it worked with Vietnamese and Japanese at the same time.

0 Kudos

Thank you, I tried to install the font "Arial Unicode MS" and it worked with Vietnamese and Japanese at the same time.