Skip to Content
Dec 30, 2021 at 11:26 AM

Crystal report Chinese characters export to PDF not working

476 Views Last edit Dec 31, 2021 at 08:48 PM 2 rev

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).