The
SelectionOnly property is used to:
- Find out which elements of the Table or TreeView Table control will be printed: print all records or the selected records only.
- Change the print mode of rows in the Table or TreeView Table control: print all records or the selected records only.
This property can only be used in the opening code of a "Report on table" or "Report on treeview table" report.
// -- Opening code of the report
// Print only the rows selected in the Table control
RPT_Report1.SelectionOnly = True
// -- Opening code of the report
// Print all rows of the Table control
RPT_Report1.SelectionOnly = False
Syntax
Finding out the print mode of the rows found in a Table or Treeview Table control Hide the details
<Result> = <Report used>.SelectionOnly
<Result>: Boolean
- True if the report will print the rows currently selected in the Table or TreeView Table control only,
- False if the report will print all the control rows.
<Report used>: Report name
Name of the "Report on table" or "Report on treeview table" report to use.
Changing the print mode of rows in a Table or TreeView Table control Hide the details
<Report used>.SelectionOnly = <Type of print>
<Report used>: Report name
Name of the "Report on table" or "Report on treeview table" report to use.
<Type of print>: Boolean
- True to print the rows selected in the Table or Treeview Table control only,
- False to print all the control rows.
Remarks
The SelectionOnly property applies only to "Report on table" and "Report on TreeView Table" reports and can only be used in the opening code of the report.