Spread Windows Forms 10.0 Product Documentation
SaveHtml(Stream) Method
Example 


Stream
Saves the sheet to the specified stream in HTML.
Syntax
'Declaration
 
Public Overloads Sub SaveHtml( _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As SheetView
Dim stream As Stream
 
instance.SaveHtml(stream)
public void SaveHtml( 
   Stream stream
)

Parameters

stream
Stream
Example
This example saves the spreadsheet to the specified stream in HTML.
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();
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 Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.