CreateRegion: Boolean;
CreateRegion: boolean;
The CreateRegion property determines whether table region will be created in regular report.
Available Values:
True. Default. Region will be created.
False. Region will not be created.
Table region is an object of the ITabRegion interface. The attribute showing that table region is present in the regular table is a blue triangle in the left top table corner.
Executing the example requires that the repository contains a regular report with the REPORT identifier. An analytical data area is created in the report.
Add links to the Express, Metabase and Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Grid: IEaxGrid;
ViewSets: IEaxGridViewSettings;
Begin
// Get table
MB := MetabaseClass.Active;
Report := MB.ItemById("REPORT").Edit As IPrxReport;
Grid := Report.DataArea.Views.Item(0) As IEaxGrid;
// Get settings of table view
ViewSets := Grid.ViewSettings;
// To not create region
ViewSets.CreateRegion := False;
// Display only data
ViewSets.OutputPart := EaxGridOutputPart.Data;
ViewSets.OutputRange := "A7:G12";
// Display hyperlinks as a text
ViewSets.HyperlinkAsText := True;
// Save changes
Report.MetabaseObject.Save;
End Sub UserProc;
After executing the example the regular report table displays value area in the specified range. The region for the value area is not created.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Report;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
Grid: IEaxGrid;
ViewSets: IEaxGridViewSettings;
Begin
// Get table
MB := Params.Metabase;
Report := MB.ItemById["REPORT"].Edit() As IPrxReport;
Grid := Report.DataArea.Views.Item[0] As IEaxGrid;
// Get settings of table view
ViewSets := Grid.ViewSettings;
// To not create region
ViewSets.CreateRegion := False;
// Display only data
ViewSets.OutputPart := EaxGridOutputPart.egopData;
ViewSets.OutputRange := "A7:G12";
// Display hyperlinks as a text
ViewSets.HyperlinkAsText := True;
// Save changes
Report.MetabaseObject.Save();
End Sub;
See also: