How to change to Chinese zh-CN font at runtime?

Posted by: michael.mayfield on 23 February 2023, 1:41 am EST

    • Post Options:
    • Link

    Posted 23 February 2023, 1:41 am EST

    We are looking to migrate an application using ARv13 to China and need to have the reports print with zh-CN localization font.

    We currently use fonts saved in style templates with in the Report Settings.

    What is the recommended way to implement the Chinese font(s) at runtime?

  • Posted 23 February 2023, 11:46 pm EST

    Hi Michael,

    If you just want to assign a custom font to your report at runtime (assuming the font is installed on your system) you can access the control in your codebase and assign a font to the ‘Control.Style’ property.

    However, if you want to include your custom font file to your report i.e. you don’t have the font installed on the system but want to include it in your report you can assign a FontResolver object to your ‘report.FontResolver’ property which will embed the font in your project to be used at runtime. Note, you can use the FontResolver in ActiveReports 14 and above.

    We’ll suggest you upgrade to the latest version of ActiveReports i.e. ActiveReports 17. You may download the same from here and try it free for the first 30 days!

    If you want to embed your custom fonts into your report to be used on a deployed server (Azure, etc.) you’ll need to implement the Font Font Factory for your project. You may learn more about the same here ActiveReports 13 - Font Factory:



Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels