Chinese Character

Stimulsoft Reports.NET discussion
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Chinese Character

Post by Chan Kuan Leang »

Can I use Chinese character in the text?
My database had records with chinese character. It can shows in the web. But when come to print this with stimulreport, all the chinese character becomes square.

Is there a way to overcome it?
How do I use it?

Thanks
Smile
Chan Kuan Leang
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Chinese Character

Post by Vital »

Hello!

You print report from StiWebViewer? How you load report - from class, file or from assembly? If you print to pdf characters presents?

Thank you.

Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Chinese Character

Post by Chan Kuan Leang »

Vital wrote:Hello!

You print report from StiWebViewer? How you load report - from class, file or from assembly? If you print to pdf characters presents?

Thank you.

Code: Select all

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim Report As Stimulsoft.Report.StiReport = rwModuleHC.GetReport()
        wvModuleHC.Report = Report
        wvModuleHC.PrintToPdf()
    End Sub
I always use the above to load my report throught a webviewer. I use sqldatasource for getting the data from mssql 2005.

When it print to pdf, it shows square boxes like "2254????(80/ctn)"

Please help me.
Thanks
Smile
Chan Kuan Leang
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Chinese Character

Post by Chan Kuan Leang »

chankl78 wrote:
Vital wrote:Hello!

You print report from StiWebViewer? How you load report - from class, file or from assembly? If you print to pdf characters presents?

Thank you.

Code: Select all

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim Report As Stimulsoft.Report.StiReport = rwModuleHC.GetReport()
        wvModuleHC.Report = Report
        wvModuleHC.PrintToPdf()
    End Sub
I always use the above to load my report throught a webviewer. I use sqldatasource for getting the data from mssql 2005.

When it print to pdf, it shows square boxes like "2254????(80/ctn)"

Please help me.
Thanks
I have a make check. In the Preview of stimul report, it shows chinese character. But when I use printtopdf(), it shows change all the chinese words to square boxes as above.

Is there anything wrong with the printtopdf()?
Thanks.
Smile
Chan Kuan Leang
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Chinese Character

Post by Vital »

Please send to support [at] stimulsoft [dot] com mdc file for this report. With mdc file we can reproduce this problem. To save mdc file please use following code:

Code: Select all

report.Render(false);
report.SaveDocument("1.mdc")
For also please inform about your version of Stimulsoft Reports.Net. If you are use one of prerelease build please inform me about date of this build.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Chinese Character

Post by Edward »

Thank you for the sample data. Please use in your report instead of the Arial the following font:

Arial Unicode MS

Thank you.
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Chinese Character

Post by Chan Kuan Leang »

Edward wrote:Thank you for the sample data. Please use in your report instead of the Arial the following font:

Arial Unicode MS

Thank you.
Thank you so much.
It is working now.
Smile
Chan Kuan Leang
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Chinese Character

Post by Edward »

Let us know if you need any help.

Thank you.
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Chinese Character

Post by Chan Kuan Leang »

Edward wrote:Let us know if you need any help.

Thank you.
Hmmmm.. I am so sorry. Now, i faced the same problem again.

The chinese character shows in my local computer. But when I upload it into my server, the chinese character becomes square again. A different types of square "????32/40(12set/ctn)". Actually it is more thinner square.

Please help me.

Need to settle this urgently as my customer have to print it for everyday business. Thanks
Smile
Chan Kuan Leang
shuhoong
Posts: 5
Joined: Tue Aug 14, 2007 12:11 am
Location: Malaysia

Chinese Character

Post by shuhoong »

Hi, i also interest in the chinese language display because i gonna use it for my application as well, did you try to install the Arial Unicode MS Font in the server ? According to my testing, the chinese language support have to rely on the Font when you do export to PDF, but it will works fine when it display on screen.

Is stimulsoft gonna work out something for this issue ?
Post Reply