Actuate Control Class Library logo

Examples

Example 1: Launch the Generation of a Report
(No Parameter Changes, No Printing)

VARIABLE myReport ixActuateReport
VARIABLE retCode SMALLINT

LET myReport = NEW ixActuateReport (parmFileName : <parameterfile name>)
LET retCode = myReport.generate ()

LET myReport = NULL

Example 2: Print a Previously Generated Report

VARIABLE myReport ixActuateReport
VARIABLE retCode SMALLINT

LET myReport = NEW ixActuateReport (reportFileName : <reportfile name>)
LET retCode = myReport.print (printOnly : TRUE)

LET myReport = NULL

Example 3: Generate and Print a Report on the Default Printer (No Parameter Changes)

VARIABLE myReport ixActuateReport
VARIABLE retCode SMALLINT

LET myReport = NEW ixActuateReport (parmFileName : <parameterfile name>)
LET retCode = myReport.print ()

LET myReport = NULL

Example 4: Generate and Print a Report in Two Copies
(Simple Parameter Change)

VARIABLE myReport ixActuateReport
VARIABLE myParm ixActuateParm
VARIABLE retCode SMALLINT

LET myReport = NEW ixActuateReport (<parameterfile name>)
LET myParm  = myReport.getParmByName ( <parameter name> )
LET retcode = myParm.setStringValue ( <new parameter value> )

LET retCode = myReport.setPrinter( numCopies: 2)

LET retCode = myReport.print ()

LET myParm = NULL
LET myReport = NULL

Return to Table of Contents.