Page 1 of 2

Chinese Character

Posted: Wed Sep 05, 2007 1:37 pm
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

Chinese Character

Posted: Wed Sep 05, 2007 2:16 pm
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.


Chinese Character

Posted: Wed Sep 05, 2007 8:11 pm
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

Chinese Character

Posted: Wed Sep 05, 2007 9:08 pm
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.

Chinese Character

Posted: Thu Sep 06, 2007 1:03 am
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.

Chinese Character

Posted: Thu Sep 06, 2007 4:22 am
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.

Chinese Character

Posted: Thu Sep 06, 2007 5:14 am
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.

Chinese Character

Posted: Thu Sep 06, 2007 5:20 am
by Edward
Let us know if you need any help.

Thank you.

Chinese Character

Posted: Fri Sep 07, 2007 10:55 am
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

Chinese Character

Posted: Sun Sep 09, 2007 10:06 pm
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 ?