Spread Windows Forms 7.0 Product Documentation
SaveHtml(Stream) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SaveHtml Method : SaveHtml(Stream) Method


stream
Stream

Glossary Item Box

Saves the sheet to the specified stream in HTML.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SaveHtml( _
   ByVal stream As Stream _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim stream As Stream
 
instance.SaveHtml(stream)
C# 
public void SaveHtml( 
   Stream stream
)

Parameters

stream
Stream

Example

This example saves the spreadsheet to the specified stream in HTML.
C#Copy Code
string f; 
f = "D:\\samples\\newVB.html"; 
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); 
fpSpread1.ActiveSheet.SaveHtml(s); 
s.Close();
Visual BasicCopy Code
Dim f As String
f = "D:\samples\newVB.html"
Dim s As New System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
FpSpread1.ActiveSheet.SaveHtml(s)
s.Close()

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.