Printable: Boolean;
The Printable property determines whether the sheet will be printed together with the book.
If the property is set to True, the sheet will be printed; if the property is set to False, the sheet will not be printed.
The property is set to True by default. The value of this property affects printing as well as export to PDF and RTF formats.
If the property value is set to False for a sheet:
When the whole book is printed, this sheet is not printed. However, this sheet can be printed separately.
When exporting a report to PDF or RTF, this sheet is not exported.
When previewing the sheet in the Preview dialog box only this sheet is available in the list of sheets.
When previewing other sheets in the Preview dialog box the list of sheets does not contain this sheet.
When only this sheet is printed, the Print drop-down list of the Print dialog box does not include the Entire Report item.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Sheet: IPrxSheet;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT").Edit;
Report := MObj As IPrxReport;
Sheet := Report.ActiveSheet;
Sheet.Printable := False;
MObj.Save;
End Sub UserProc;
After executing the example the Print Sheet with the Report option is disabled for the active sheet of the regular report. The identifier of the regular report - Report.
See also: