Localization for page n of m

Posted by: peterf on 7 April 2023, 7:51 pm EST

  • Posted 7 April 2023, 7:51 pm EST

    I’m using C1FlexReport to generate reports from SQL and I’d like to have a text field on my footer something like:

    Page [Page] of [Pages]

    What would be the best way to achieve that for any locale (the only thing I can think of is passing in variables to my stored procedure for each word that needs a translation).

  • Posted 10 April 2023, 3:11 am EST

    Hi Peter,

    The C1FlexReport does not provide any built-in feature to translate the content of the Report and you will need to manually translate these words as per all the required locales.

    Further, you can store the translations for different locales in your applications’ resource files (.resx) and switch between them according to the environment at runtime.

    Or

    If we understand your idea correctly, you can also use the implementation you described, which involves passing the words that need to be translated to a stored procedure and getting the translations back.

    Thanks, and Kind Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels