Report Control Edit
Menu: View ~ Set up ~ Report
Button Panel: n/a
Within each section of a report, information can be presented in a variety of different ways. It might be a constant text value, such as heading text, or a a data field which is retrieved from a data source, or even a line drawn across the page.
Each element of information is represented in Kwik-Pay as a 'report control'. The main types of report control are:
- Field prints the value of a data item from a Kwik-Pay data source
- Label prints a constant text value
- SubReport prints a sub report embedded within a report
- Line prints a line across the page
Each type of control needs different information in order to be printed:
Field Control
- Data Field Select the name of the field in the data source that will be printed.
- Output Format Specifies how a number or date is to be presented. See output formats for more details.
- Text This text will be printed in place of a field's data value, if the data field does not exist in the data source.
- Vertical Alignment Specifies if the field value will be printed at the top, middle or bottom of the defined field area.
- Left The distance from the left margin of the page to the left side of the text area.
- Top The distance from the top margin of the page to the top side of the text area.
- Back Colour The background colour of the field.
- Font The font to be used printing field text.
- Height The height of the text area.
- Width The width of the text area.
- Alignment Selects the horizontal alignment of the text in the text area. Select left, centre, or right alignment.
- Visible Check this to stop the text from being printed.
- Can Grow If this is selected, the text area will be extended to more lines when the text to be printed will not fit in the text area.
- Can Shrink If this is selected the text area will be reduced to fewer lines if the text to be printed is less.
- Function See the list of summary functions.
- Running Select 'Group' if this text field is a running total within a group, or 'All' if this text field is a running total which is not reset at the start of each group, or 'None' if it is not a running total.
- Summary Type See the list of summary types.
- Group If this text field is a group total, this is the name of the group header that is controlling the breaking of the group and when the total is to be printed.
Label Control
- Caption Contains the text to be printed.
- Angle Can contain an angle at which the text is to be printed. 45 will cause the text to slope upwards at an angle of 45 degrees from left to right. 90 Will print the text at vertically, from bottom to top.
- Left The distance from the left margin of the page to the left side of the label area.
- Top The distance from the top margin of the page to the top side of the label area.
- Back Colour The background colour of the field.
- Font The font to be used printing field text.
- Height The height of the label area.
- Width The width of the label area.
- Alignment Selects the horizontal alignment of the text in the label area. Select left, centre, or right alignment.
- Visible Check this to stop the label from being printed.
- Can Grow If this is selected, the label area will be extended to more lines when the caption to be printed will not fit in the label area.
- Can Shrink If this is selected the label area will be reduced to fewer lines if the caption to be printed is less.
Line Control
- X1 The distance from the left margin (in twips) of one end of the line.
- Y1 The distance from the top margin (in twips) of one end of the line.
- X2 The distance from the left margin (in twips) of the other end of the line
- Y2 The distance from the top margin (in twips) of the other end of the line
- Line Width The width (or weight) of the line
- Line Style Select if the line is solid, dots or dashes.
- Line Colour The colour of the line.
- Visible Check this to stop the line from being printed.
Sub Report Control
- Report Name The name of the report.
- Can Grow If this is selected, the sub report text area will be extended to more lines when the text to be printed will not fit in the sub report text area.
- Can Shrink If this is selected the sub report text area will be reduced to fewer lines if the text to be printed is less.