SectionLineHeight

SectionLineHeight specifies the line height in twips.

Syntax
[form.]Report.SectionLineHeight(SequentialIndex%)[=sectionCode; line; 
height; ascent$]

For example:

CrystalReport1.SectionLineHeight(0) = "GH0; 1; 500; 300"

«Sets the line height for the second line in the group header zero section to a height of 500 twips with an ascent of 300 twips.»

Remarks

A twip is 1/1440 inch; there are 20 twips in a point.

With SectionLineHeight, you can specify changes to one or more sections at runtime. Those changes then take place sequentially when you make the "Action=1" call. The sequential index value for SectionLineHeight simply specifies the sequence number for the change. Thus:

CrystalReport1.SectionLineHeight(0)= "DETAIL;1;500;300"

when making changes to the DETAIL section only, but

CrystalReport1.SectionLineHeight(0) = "HEADER;1;500;300"
CrystalReport1.SectionLineHeight(1) = "DETAIL;1;500;300"

when making changes to more than one section.

Use the following table as a guide in supplying the required values for this property:

section
Code

Specifies the section code for the report section(s) for which you want to set a new line height. See Overview of Section Codes.

lineN

Specifies the line(s) for which you want to set the line height. Line numbers in a section are 0 origin: the first line number is 0, the second is 1, etc.

height

Specifies the line height in twips. A twip is 1/1440 inch; there are 20 twips in a point.

ascent

Specifies the ascent in twips. Ascent is the distance from the top of the allotted line space (line height) to the baseline of the font. The ascent parameter is used to specify the position of the baseline if you specify an oversized or undersized line height. If you set ascent to 0, the program puts the baseline at the top of the space; if you set ascent to the same value as height, the program sets the baseline at the bottom of the space. For any other baseline, specify the ascent in twips.

Data Type

Arrays of strings

Availability

Runtime



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com