BlackAndWhite: Boolean;
The BlackAndWhite property determines that the object is printed in black and white colors.
By default this property is set to False and the object is printed and exported preserving color scheme of the object. If this property is set to True, all report colors are converted to various shades of gray when the report is printed or exported.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Sub Main;
Var
MB: IMetabase;
Expr: IEaxAnalyzer;
PrSetting: IEaxObjectPrintSettings;
Begin
MB := MetabaseClass.Active;
Expr := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
PrSetting := Expr.Grid.PrintSettings;
PrSetting.BlackAndWhite := True;
PrSetting.Scale := -1;
(Expr As IMetabaseObject).Save;
End Sub Main;
After executing the example print and export options of express report table are changed. The table is exported or printed as a black and white table justified to page width.
See also: