SAP Knowledge Base Article - Public

1997325 - How to localize the special field: Page N of M

Symptom

  • Using Preferred View Locale in the Crystal Reports designer to set a specific locale.
  • All text is change to the chosen locale, except the special filed N of M.
  • How to get Page N of M to recognize the chosen locale?

Environment

  • SAP Crystal Reports 2011
  • SAP Crystal Reports 2013
  • Crystal Reports 2008

Resolution

  • Use the following formula in the header (this formula is in German, but can be modified to any language):

 

stringvar pn:= totext(pagenumber,0);
stringvar pc:= totext(totalpagecount,0);
if ContentLocale = 'en_US'
    then 'Page ' + pn + ' of ' + pc
else
if ContentLocale = 'de_DE'
    then 'Seite N von M'
else 'Page ' + pn + ' of ' + pc

Keywords

translation language nofm cr , KBA , reprot , BI-RA-CR , Crystal Reports designer or Business View Manager , How To

Product

SAP Crystal Reports 2011 ; SAP Crystal Reports 2011, feature pack 03 ; SAP Crystal Reports 2013