Spread for ASP.NET 9.0 Product Documentation
SaveHtml(Stream) Method
Example 


The stream
Saves the sheet as HTML content to the stream
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
The stream
Example
This example uses the SaveHtml method.
protected void Button1_Click(object sender, EventArgs e)
{
FarPoint.Web.Spread.SheetView sv;
System.IO.Stream s;
string fileName;
sv = FpSpread1.ActiveSheetView;
fileName = "C:\\SpreadASP7\\samples\\test.html";
s = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate);
sv.SaveHtml(s);
s.Close();
}
Private Sub Button1Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sv As FarPoint.Web.Spread.SheetView
Dim s As System.IO.Stream
Dim fileName As String
sv = FpSpread1.ActiveSheetView
fileName = "C:\SpreadASP7\samples\test.html"
s = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate)
sv.SaveHtml(s)
s.Close()
End Sub
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.