Update(Value: Boolean);
Update(Value: boolean);
Value. The value that determines whether visualizer is rerendered.
The Update method determines whether visualizer is rerendered.
Available values determined by the parameter:
True. Visualizer is rerendered.
False. Visualizer is not rerendered.
To determine visualizer type in a regular report, use IPrxVisualizer.EaxVisualizer.
Executing the example requires that the repository contains a regular report. The report contains a map as a visualizer. Each cell contains a hyperlink, clicking which executes the procedure or function SetColor in the SetColor unit. Procedure implementation is presented below.
Add links to the Drawing, Express, Report, Tab, Visualizators system assemblies.
Public Sub SetColor;
Var
ActiveSheet: IPrxTable;
TabObj: ITabObject;
RepVis: IPrxVisualizer;
MapChart: IEaxMapChart;
VisMapChart: IVZMapChart;
Begin
ActiveSheet := PrxReport.ActiveReport.ActiveSheet As IPrxTable;
TabObj := ActiveSheet.TabSheet.Objects.Item(0);
RepVis := TabObj.Extension As IPrxVisualizer;
MapChart := RepVis.EaxVisualizer As IEaxMapChart;
VisMapChart := MapChart.MapChart;
VisMapChart.Background := New GxSolidBrush.Create(GxColor.FromName("Red"));
RepVis.Update(True);
End Sub setColor;
After executing the example clicking the hyperlink changes visualizer background color to red.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.Visualizators;
…
Public Shared Sub Main(Params: StartParams);
Var
PrxReport: PrxReportClass = New PrxReportClass();
ActiveReport: IPrxReport;
TabSheet: IPrxTable;
TabObj: ITabObject;
RepVis: IPrxVisualizer;
MapChart: IEaxMapChart;
VisMapChart: IVZMapChart;
SolBr: GxSolidBrushClass = New GxSolidBrushClass();
Color: GxColorClass = New GxColorClass();
Begin
ActiveReport := PrxReport.ActiveReport[Null];
TabSheet := ActiveReport.ActiveSheet As IPrxTable;
TabObj := TabSheet.TabSheet.Objects.Item[0];
RepVis := TabObj.Extension As IPrxVisualizer;
MapChart := RepVis.EaxVisualizer As IEaxMapChart;
VisMapChart := MapChart.MapChart;
SolBr.Create(Color.FromName("Red"));
VisMapChart.Background := SolBr;
RepVis.Update(True);
End Sub;
See also: