Ticket T1195725
Visible to All Users

Reporting in .net core not supporting chinese characters

created 2 years ago

Hi Team,

We are facing issue with chinese characters display on our reports.
I am using XRLabel using Arial font, chinese characters are printed as blank on pdf report.
Our report service is deployed on azure app service.

Below are version details:
Devexpress report: 21.1.5.0
.Net Core 5.0
Azure app service plan: P2v3

Answers approved by DevExpress Support

created a year ago

Hello,

Thank you for reaching out to us.

We encountered similar inquiries in the past. Please refer to the following threads:

The issue usually occurs because the control's font does not contain glyphs for Chinese characters. To export Chinese characters to a PDF file, you need to set the control's Font property to Arial Unicode MS or any other font that supports Chinese. Make sure that this font is installed on your machine.

If it doesn't help, I assume other factors in your project might cause the issue. Please refer to the following thread where we discussed possible causes: Can't show Chinese in exported devexpress pdf.

I hope you find this information helpful.

Regards,
Aleksandr

    Show previous comments (1)
    Yaroslav (DevExpress Support) a year ago

      The only other alternative is to upgrade the version of DevExpress components in use. The latest version (v23.1) comes with the automatic font fallback functionality. This means that you're no longer required to change XRControl.Font to guarantee text visibility in produced PDFs (meaning you can initially assign any font regardless of what graphemes it contains). Check this blog post for more information: Reporting — Early Access Preview (v23.1) — Optimized Page Loading for Web Apps, Font Fallback during PDF Export, Barcode Enhancements and More.

      Note: the pool of available fonts is determined by the DXFontRepository API. This is our alternative to PrivateFontCollection that works on Azure. Again, this functionality is not available in v21.1.

        Is there any other font which is available in windows default fonts for chinese characters?

        1. I cant upgrade my project to use latest devexpress reporting.
        2. Tried using rich text but it has limitations (doesnot support text alignment)
        3. Cant change from azure app service to containerization.
        Aleksandr (DevExpress Support) a year ago

          Hello Paresh,

          You can find fonts that support Chinese characters in the following Wikipedia article: List of CJK fonts - Wikipedia.

          You can also use system settings to find fonts available in your Windows as follows:

          I hope this helps.

          Regards,
          Aleksandr

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.