SAP Knowledge Base Article - Public

1287413 - Error: “DHTML and Advance DHTML viewer word wraps with incorrect line spacing”

Symptom

  • Text field object of Crystal Report formatted with Line Spacing as "Multiple" with "1" time normal spacing.
  • The Line spacing is narrower than expected when report is viewed in DHTML or Advance DHTML viewer.
  • This behavior also appears when report is exported as HTML 4.0 / PDF from Designer and from ActiveX viewer.

Cause

  • The DHTML viewer renders the line spacing by specifying CSS Style i.e. line spacing set to Multiple and "line spacing: 1.0".
  • Line Spacing is shorter in Internet Explorer / Fire Fox because CSS Style will cause line spacing 1.0 time the current font setting.

Resolution

  1. Open your report in Crystal Report Designer.
  2. Go to ‘Insert Menu".
  3. Select "Text Object" and insert it in your report.
  4. Right Click on "Text Object", select "Text Formatting".
  5. You will get another wizard for formatting.
  6. Select "Paragraph" tab and go to Spacing section.
  7. Use "Exact" setting for Line Spacing.
  8. Give explicit size. For e.g. If you set "Exact" to "10", then the style becomes "line spacing: 10px;" and the line spacing is correct.
  9. Do not use "Multiple" setting for Line Spacing.

Keywords

Line Spacing, Text Formatting , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem

Product

SAP Crystal Reports XI R2