NativeExcel suite v2.x

SaveAsHTML method

Saves workbook in HTML file. Returns 1 if it succeeds.

Remarks

This method is deprecated. Use IXLSWorkbook.SaveAs method.

Syntax

function SaveAsHTML(FileName: WideString): integer;
FileNameWideString. A string that indicates the name of the file to be saved. You can include a full path; if you don't, workbook saves the file in the current folder.

Example

This example creates a new workbook with two worksheets and then saves the workbook in HTML file.
Var
  WorkBook: IXLSWorkBook;
begin
  WorkBook := TXLSWorkBook.Create; {create new workbook}
  WorkBook.Worksheets.Add; 
  {....}
  WorkBook.Worksheets.Add; 
  {....}
  WorkBook.SaveAsHTML('C:\book.html');
end;
Copyright © NikaSoft 2004-2012