1571507 - How to set the preferred viewing locale using JRC

SAP Knowledge Base Article - Public

1571507 - How to set the preferred viewing locale using JRC

Symptom

How to set the preferred viewing locale using JRC?

Environment

  • Crystal Reports Server 2008
  • Java Reporting Component (JRC)

Resolution

  • In order to open the report in desired Viewing Locale, add the following line of code in the JRC application's code : 
              ReportClientDocument.setPreferredViewingLocale(Locale preferredViewingLocale);
  • Save the implemented changes.
  • Execute the JRC application.

Keywords

Setting locale using JRC, Preferred viewing locale. , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , How To

Product

Crystal Reports 2008 V1