SuppressZero: Boolean;
The SuppressZero property determines the state of the Filter Zero Values option.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
Prop: IPrxDataIslandProperties;
THead: IPrxDataIslandHeader;
Filter: IPrxDataIslandHeaderFilter;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
DIs := Report.DataIslands;
DI := DIs.Item(0).Edit;
Prop := DI.Properties;
THead := Prop.TopHeader;
Filter := THead.Filter;
Filter.SuppressZero := True;
DI.Save;
MObj.Save;
End Sub Main;
After executing the example the Filter Zero Values option is enabled for columns of the first data area of the regular report. The identifier of the regular report - Report.
See also: