OutputRange: String;
OutputRange: String;
The OutputRange property determines the slice range (R1C1 format) shown in the data area (it is relevant only when OutputPart = DataOnly).
Executing the example requires a regular report with the REPORT identifier, which contains data area. Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
DI: IPrxDataIsland;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT").Edit;
DI := (MObj As IPrxReport).DataIslands.Item(0).Edit;
// Set a range displayed in data area.
DI.OutputPart := PrxDataIslandPart.DataOnly;
DI.OutputRange := "r[1]c[1]:r[10]c[10]";
DI.Save;
// Save report.
MObj.Save;
End Sub UserProc;
After executing the example the first data area of the regular report shows only data, relative address of displayed slice range: r[1]c[1]:r[10]c[10]. Regular report identifier - REPORT.
Before executing the example:
After executing the example the data area in the cell range from R1C1 to R10C10 is displayed (the first row and column are cut in this example).
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
DI: IPrxDataIsland;
Begin
MB := Params.Metabase;
MObj := MB.ItemById["REPORT"].Edit();
DI := (MObj As IPrxReport).DataIslands.Item[0].Edit();
// Set a range displayed in data area.
DI.OutputPart := PrxDataIslandPart.pdipDataOnly;
DI.OutputRange := "r[1]c[1]:r[10]c[10]";
DI.Save();
// Save report.
MObj.Save();
End Sub;
See also: