Spread for ASP.NET 7.0 Product Documentation
SaveHtml(Stream,Encoding) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > SaveHtml Method : SaveHtml(Stream,Encoding) Method


stream
The stream
encoding
The character encoding to use.

Glossary Item Box

Saves the sheet as HTML content to the stream

Syntax

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

Parameters

stream
The stream
encoding
The character encoding to use.

Example

This example uses the SaveHtml method.
C#Copy Code
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, System.Text.Encoding.ASCII);
s.Close();
}
Visual BasicCopy Code
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\est.html"
s = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate)
sv.SaveHtml(s, System.Text.Encoding.ASCII)
s.Close()
End Sub

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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