1947728 - Right alignment of decimal values is not precisely aligned

SAP Knowledge Base Article - Public

1947728 - Right alignment of decimal values is not precisely aligned

Symptom

  • A field is formatted to use Times New Roman font.
  • The field right aligned and set to display two decimal places.
  • The coma used as the decimal separator does not align from record to record:

 

Untitled.png

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio
  • Microsoft Visual Studio (2010 / 2012)

Reproducing the Issue

  1. Create a Crystal Report with a numeric field
  2. Set the font to be Times New Roman
  3. Right justify the field
  4. Run in a Windows application that uses the Crystal Reports SDK for Visual Studio .NET

Cause

  • Times New Roman font is not a proportional font.
  • Every letter and number has a different width.

Resolution

  • Use a non-proportional font such as Courier New or Lucida Console

See Also

Keywords

CR CRVS CR4VS space text digit number exact , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio