Drawing > Drawing Assembly Interfaces > IExporter > IExporter.Encoding
Encoding: CodePage;
The Encoding property sets the code page of the conversion table, according to which the data is to be exported.
The property is available only for the export to the HTML format.
Executing the example requires that the repository contains a regular report with the REPORT identifier.
Sub UserProc;
Var
Mb: IMetabase;
Report: IPrxReport;
Tab: ITabSheet;
Exp: ITabSheetExporter;
Begin
Mb := MetabaseClass.Active;
Report := Mb.ItemById("REPORT").Bind As IPrxReport;
Tab := (Report.ActiveSheet As IPrxTable).TabSheet;
Exp := New TabSheetExporter.Create;
Exp.TabSheet := Tab;
Exp.Encoding := Codepage.UTF8;
Exp.ExportToFile("D:\Report1.html", "HTML");
End Sub UserProc;
After executing the example the active regular report sheet is exported to an HTML file. The UTF-8 encoding is used for the HTML page.
See also: