NativeExcel for .Net Developer's Reference

IWorksheet.SaveAsHTMLMethod(TextWriter)

Saves worksheet in HTML format using the specified TextWriter. Returns 1 if it succeeds

[Visual Basic]
FunctionSaveAsHTML(_
ByValwriterAsTextWriter_
)AsInteger
[C#]
intSaveAsHTML(
TextWriterwriter
);
[C++]
intSaveAsHTML(
TextWriter*writer
);
[JScript]
functionSaveAsHTML(
TextWriterwriter
):int;

Parameters

writer
The TextWriter object with which to write.

Example

This example saves worksheet one using writer.

[C#]
  book.Worksheets[1].SaveAsHTML(writer);                
[VisualBasic]
  book.Worksheets(1).SaveAsHTML(writer)                
[C++]
  book->Worksheets->Item[1]->SaveAsHTML(writer);                

See Also

IWorksheet Interface | NativeExcel Namespace | IWorksheet.SaveAsHTML Overload List