NativeExcel suite v1.x

SaveAsHTML method

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

Remarks

This method is deprecated. Use IXLSWorksheet.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, worksheet saves the file in the current folder.

Example

This example creates a new workheet and then saves it in the HTML file.
Var
  WorkBook: IXLSWorkBook;
  Worksheet: IXLSWorksheet;
begin
  WorkBook := TXLSWorkBook.Create; {create new workbook}
  Worksheet := WorkBook.Worksheets.Add; 
  {....}
  Worksheet.SaveAsHTML('C:\sheet.html');
end;
Copyright © NikaSoft 2004-2011