Assembly: Express;
Name space: Prognoz.Platform.Interop.Express;
The IEaxSheets interface contains properties and methods used to work with collection of express report sheets.
IEaxSheets
Use the IEaxAnalyzer.Sheets property to get a collection of express report sheets.
The IEaxSheets collection also implements properties and methods of the IGxDocument interface, that is why it is used for batch print of all sheets. Examples of printing all sheets of express report:
Sub UserProc;
Var
MB: IMetabase;
Expr: IEaxAnalyzer;
GxDoc: IGxDocument;
Printer: IGxDocumentPrinter;
Begin
MB := MetabaseClass.Active;
Expr := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
Printer := GxPrinters.DefaultPrinter As IGxDocumentPrinter;
GxDoc := Expr.Sheets As IGxDocument;
GxDoc.Print(Printer, -1, 0, "");
End Sub UserProc;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Expr: IEaxAnalyzer;
GxPrintersCls: GxPrintersClassClass = New GxPrintersClassClass();
GxDoc: IGxDocument;
Printer: IGxDocumentPrinter;
Begin
MB := Params.Metabase;
Expr := MB.ItemById["EXPRESS_REPORT"].Bind() As IEaxAnalyzer;
Printer := GxPrintersCls.DefaultPrinter As IGxDocumentPrinter;
GxDoc := Expr.Sheets As IGxDocument;
GxDoc.Print(Printer, -1, 0, "", True);
End Sub;
Property name | Brief description | |
The Analyzer property returns the source express report, which owns current sheet collection. | ||
The Count property returns the number of sheets in the collection. | ||
The Item property returns sheet parameters by index. | ||
The ItemByKey property returns sheet parameters according to the key. |
Method name | Brief description | |
The Add method creates the sheet that is based on the current express report. | ||
The AddNew method creates the sheet that is based on the a express report. | ||
The AddSheets method copies selected sheet collection to the current collection. | ||
The Clear method delete all sheets from the gallery. | ||
The IndexOf method returns an index of the selected sheet in the gallery. | ||
The InsertAt method inserts selected sheet to the specified position of collection. | ||
The Move method moves the sheet inside the collection. | ||
The Remove method remove selected sheet. | ||
The RemoveByIndex method removes sheet by index. | ||
The RemoveByKey method removes sheet by key. |
See also: