Previous Topic

Next Topic

Report Designer Global Variables

Global variables are available for document style reports, such as Invoices and Statements.

PartCount

PartCount allows you to print multiple copies of a report. This is set using MaxBasic code, usually in the BeforeReport code. For example:

PartCount = 2

This is useful if you want to print a Customer copy and an Office copy. For example if PartCount is set to 2, two copies of each document are printed.

PartCount is also a property of the Report, and can be set in the Report Properties in Report Designer.

The copies do not need to be identical. You can use MaxBasic code to conditionally change the copies based on the PartNumber function. For example, the expression:

IIf(PartNumber = 1, "Customer Copy", "Office Copy")

would set "Customer Copy" for part 1 and "Office Copy" for all other parts.

For an example of using PartCount, see IN Tutorial: Add Watermarked Second Page to Invoice.

PrintDocument

By default, PrintDocument is set to True. In the BeforeReport code, it can be set to False to prevent printing the document. PrintDocument is is similar to the Print property on a Band, but it applies to the entire document. This allows filtering of the documents to print from inside the report.

ExportRow ExportColumn

These control the column and rows used when printing a report to Excel. These differ from the Component Properties ExportRow/Export column in that they are global to the entire report.

See Also

Report Designer

Book Contents

Book Index