MakeBlackAndWhite;
The MakeBlackAndWhite method enables the user to display a chart in black and white format.
To execute the example, add links to the Chart, Report and Tab system assemblies. This unit is connected to the regular report, a sheet of which contains only a chart. The ChangeBlackAndWhite procedure is assigned as a handler of a hyperlink click in a report cell.
Sub ChangeBlackAndWhite;
Var
Rep: IPrxReport;
TabS: ITabSheet;
pChart: IPrxChart;
Chart: IChart;
Begin
Rep := PrxReport.ActiveReport;
TabS := (Rep.ActiveSheet As IPrxTable).TabSheet;
pChart := TabS.Objects.Item(0).Extension As IPrxChart;
Chart := pChart As IChart;
Chart.MakeBlackAndWhite;
TabS.Recalc;
End Sub ChangeBlackAndWhite;
After clicking the hyperlink executing the ChangeBlackAndWhite procedure the chart is displayed in black and white format.
See also: