Description
Besides using action scripts to create a custom form or to start a process, you can also use action scripts to start and print reports. Much of this procedure is the same as that for batch processes. After specifying the correct report startup parameters, click the Batch button to view all additional parameters for this report on the Batch parameters tab.
Example
Sub Main
Dim
report
Set
Report = IsahObjects.
Get
(
"PRCREPORT"
)
Report.RepCode =
"R0001"
Report.SelectedPrinter =
0
Report.Orientation =
2
Report.Copies =
1
Report.SortOrder =
0
Report.Collation = False
Report.SetParam
"@CustIdFrom"
,
"0"
Report.SetParam
"@CustIdTill"
,
"Z"
Report.Print
End Sub