QR SET HEADER AND FOOTER

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2003


QR SET HEADER AND FOOTER (area; selector; leftTitle; centerTitle; rightTitle; height{; picture{; pictAlignment}})

ParameterTypeDescription
areaLongintReference of the area
selectorLongint1 = Header, 2 = Footer
leftTitleStringText displayed on the left side
centerTitleStringText displayed in the middle
rightTitleStringText displayed on the right side
heightRealHeader or footer height
picturePicturePicture to display
pictAlignmentLongintAlignment attribute for the picture

Description

The QR SET HEADER AND FOOTER command allows you to set the contents and size of the header or footer.

selector allows you to select the header or the footer:

if selector equals 1, the header will be affected;

if selector equals 2, the footer will be affected.

leftTitle, centerTitle and rightTitle are the values for, respectively, the left, center and right header/footer.

height is the height of the header/footer, expressed in the unit selected for the quick report.

picture is a picture that will be displayed in the header or footer.

pictAlignment is the alignment attribute for the picture passed in picture.

If pictAlignment equals 0, the picture is aligned to the left.

If pictAlignment equals 1, the picture is centered.

If pictAlignment equals 2, the picture is aligned to the right.

If you pass an invalid area number, the error -9850 will be generated.

If you pass an invalid selector value, the error -9852 will be generated.

Example

The following statement places the title "Center title" in the header for the Quick Report in MyArea and sets the header height to 200 points:

   QR SET HEADER AND FOOTER(MyArea; 1;""; "Center title";""; 200)

See Also

QR GET HEADER AND FOOTER.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next