ITabSheetExporter.AutoHeight

Syntax

AutoHeight: Boolean;

Description

The AutoHeight property determines whether row autofit is used for export to HTML (*.html) and RTF (*.rtf).

Comments

Available values:

Example

Executing the example requires a regular report with the REGL_EXPORT identifier.

Add links to the Metabase, Report and Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Tab: ITabSheet;
    Exp: ITabSheetExporter;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById(
"REGL_EXPORT").Edit As IPrxReport;
    Tab := (Report.Sheets.Item(
0As IPrxTable).TabSheet;
    Exp := 
New TabSheetExporter.Create;
    Exp.TabSheet := Tab;
    Exp.AutoHeight := True;
    Exp.BreakIntoLayouts := 
True;
    
// Export to RTF:
    Exp.ExportToFile("C:\Export.rtf""RTF");
End Sub UserProc;

After executing the example the report is exported to RTF format. Row height in the output file is set automatically depending on the cell contents. On export the sheet is divided into print pages.

See also:

ITabSheetExporter