Spread Windows Forms 6.0 Product Documentation
SaveHtmlRange(Int32,Int32,Int32,Int32,Boolean,Boolean,Boolean,Stream) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SaveHtmlRange Method : SaveHtmlRange(Int32,Int32,Int32,Int32,Boolean,Boolean,Boolean,Stream) Method


row
Starting row index
column
Starting column index
rowCount
Number of rows
columnCount
Number of columns
rowHeaders
True to include row headers
columnHeaders
True to include column headers
columnFooter
True to include column footers
stream
Stream to which to save the text of the range

Glossary Item Box

Saves the specified range in the sheet to the specified stream in HTML.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SaveHtmlRange( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer, _
   ByVal rowHeaders As Boolean, _
   ByVal columnHeaders As Boolean, _
   ByVal columnFooter As Boolean, _
   ByVal stream As Stream _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim rowHeaders As Boolean
Dim columnHeaders As Boolean
Dim columnFooter As Boolean
Dim stream As Stream
 
instance.SaveHtmlRange(row, column, rowCount, columnCount, rowHeaders, columnHeaders, columnFooter, stream)
C# 
public void SaveHtmlRange( 
   int row,
   int column,
   int rowCount,
   int columnCount,
   bool rowHeaders,
   bool columnHeaders,
   bool columnFooter,
   Stream stream
)

Parameters

row
Starting row index
column
Starting column index
rowCount
Number of rows
columnCount
Number of columns
rowHeaders
True to include row headers
columnHeaders
True to include column headers
columnFooter
True to include column footers
stream
Stream to which to save the text of the range

Example

This example saves the specified range of the spreadsheet in HTML to a stream.
C#Copy Code
fpSpread1.ActiveSheet.SaveHtmlRange(0, 0, 3, 3, true, true, "D:\\samples\\spreadrange.html");
Visual BasicCopy Code
Dim f As String
f = "D:\samples\spread.html"
Dim s As New System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
FpSpread1.ActiveSheet.SaveHtmlRange(0, 0, 3, 3, True, True, 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.