On the fly C1Report format changing

Posted by: kepple26 on 25 June 2018, 2:13 pm EST

    • Post Options:
    • Link

    Posted 25 June 2018, 2:13 pm EST

    In SSRS I can set the Language property of a report so that the format of numbers, currency symbol, date, etc will be for a desired locale using Local Code’s (I.E. en-US or ja-JP).

    Does C1Reports have something equivalent to this? I just want the report to be formatted for a specific locale at runtime rather than the whole entire application.

  • Posted 26 June 2018, 12:17 am EST

    Hello,

    Yes, you can localize C1Report by clicking on Smart Tag of ‘C1Report’ and then ‘Localize’. You can learn more about the same from this documentation link:

    http://help.grapecity.com/componentone/NetHelp/c1report/webframe.html#localization.html

    Let us know if you need further assistance.

    Best Regards,

    Esha

  • Posted 27 June 2018, 10:14 am EST

    Hi Esha,

    You misunderstood my questions I am not asking how localize the C1Report UI. I am asking how to localize the actual report output. From what I can tell it just used the current localization settings of Windows. I’m asking if this can be overridden so I can export my report in German or Japanese format without switching the Windows settings?

    Thanks!

  • Posted 27 June 2018, 10:14 am EST

    Hi Esha,

    You misunderstood my questions I am not asking how localize the C1Report UI. I am asking how to localize the actual report output. From what I can tell it just used the current localization settings of Windows. I’m asking if this can be overridden so I can export my report in German or Japanese format without switching the Windows settings?

    Thanks!

  • Posted 28 June 2018, 3:28 am EST

    Hi,

    you might try to change the current culture before generating your report:

    
    System.Globalization.CultureInfo.CurrentCulture = new System.Globalization.CultureInfo ("de-DE");
    
    

    After the report is finished, you have to set the culture back to the previous value.

    Hope this works

    Wolfgang

  • Posted 28 June 2018, 3:34 am EST

    Hi,

    I would like to inform you that C1Report renders in a format as per the system settings. It is the default behavior. There is not property in C1Report for the same.

    However, you can use our latest reporting tool C1FlexReport instead of C1Report which has Culture property for the same purpose.

    https://www.grapecity.com/en/forums/winforms-edition/c1report-in-maintenance-mo_1

    http://help.grapecity.com/componentone/NetHelp/FlexReport/webframe.html#FlexReportforWinFormsOverview.html

    https://www.grapecity.com/en/blogs/3-ways-to-convert-your-c1report-to-flexreport

    Thanks,

    Singh

Need extra support?

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

Learn More

Forum Channels