Report functions

These functions return meaningful values only if called in a !report section. The functions listed under General functions are also available for use in reports.


General report functions

getprintxy()

Retrieve the current print position

setfont()

Set the current font in a report

setprintxy()

Set the print position


Field total and statistic functions

average()

Return the average value of a field

max()

Return the maximum value of a field

min()

Return the minimum value of a field

total()

Return the total value of a field

count()

Return the total count of rows


Print functions (only meaningful in a print[h] command)

asp()

Print a number of alpha spaces

fit()

Force text into allocated space

lns()

Print a number of blank lines

nsp()

Print a number of spaces the width of the “0” character

psc()

Output a standard printer control sequence

pset()

Set a numeric value in the printer

puc()

Output a user-defined printer control sequence

spc()

Print a number of spaces

tab()

Tab to a new column


Windows printing interface functions

ClearPrintProperties()

Clear all properties set by program for a printer

ConfigurePrinter()

Configure a printer, using Windows dialog

DefaultPrinter()

Return name and properties of default printer

EnumPrinters()

Return number and names of available printers

EnumPrintForms()

Return number and names of available print forms

GetPrintBins()

Return number of print bins available for a printer

GetPrintProperties()

Return printer properties

SelectPrinter()

Call Print Manager dialog and select a printer

SetPrintBin()

Set the bin to be used for reports to a printer

SetPrintProperty()

Set a print property