Spread Windows Forms 6.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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