ITabIconExporter.PixelHeight

Syntax

PixelHeight: Integer;

Description

The PixelHeight property determines height of an icon to be exported (in pixels).

Example

Executing the example requires that the repository contains a regular report with the REP_TABSHEET identifier. On a report sheet there should be positioned icons of the images collection of the (ITabSheet.Images) table, for example:

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

SheetT: IPrxTable;

Tab: ITabSheet;

Exp: ITabIconExporter;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("REP_TABSHEET").Bind As IPrxReport;

SheetT := Report.Sheets.Item(0) As IPrxTable;

Tab := SheetT.TabSheet;

Exp := New TabIconExporter.Create;

Exp.TabSheet := Tab;

Exp.IconIndex := 0;

Exp.PixelHeight := 32;

Exp.PixelWidth := 32;

Exp.ExportToFile("C:\Icon_0.bmp", "bmp");

End Sub Main;

After executing this example the first sheet icon is exported to a file with the specified format. Size of the icon is 32x32 pixels.

See also:

ITabIconExporter