Skip to main content
Version: 21 R3

QR SET HEADER AND FOOTER

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

ParameterTypeDescription
areaInteger→Reference of the area
selectorInteger→1 = Header, 2 = Footer
leftTitleText→Text displayed on the left side
centerTitleText→Text displayed in the middle
rightTitleText→Text displayed on the right side
heightInteger→Header or footer height
picturePicture→Picture to display
pictAlignmentInteger→Alignment attribute for the picture
History
ReleaseChanges
2003Created

Description​

The QR SET HEADER AND FOOTER command sets the contents and size of the header or footer.

selector selects the header or the footer:

  • If selector is 1, the header is affected;
  • If selector is 2, the footer is 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 is 1, the picture is aligned to the left.
  • If pictAlignment is 2, the picture is centered.
  • If pictAlignment is 3, 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

Properties​

Command number774
Thread safeno
Modifies variableserror