Spread Windows Forms 10.0 Product Documentation
SaveHtmlRange(Int32,Int32,Int32,Int32,Boolean,Boolean,Stream) Method
Example 


Starting row index
Starting column index
Number of rows
Number of columns
True to include row headers
True to include column headers
Stream to which to save the text of the range
Saves the specified range in the sheet to the specified stream in HTML.
Syntax
'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 stream As Stream _
) 
'Usage
 
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 stream As Stream
 
instance.SaveHtmlRange(row, column, rowCount, columnCount, rowHeaders, columnHeaders, stream)
public void SaveHtmlRange( 
   int row,
   int column,
   int rowCount,
   int columnCount,
   bool rowHeaders,
   bool columnHeaders,
   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
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.
string f; 
f = "D:\\samples\\spread.html"; 
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); 
fpSpread1.ActiveSheet.SaveHtmlRange(0, 0, 3, 3, true, true, s); 
s.Close();
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 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.