SaveTextFileRange(Int32,Int32,Int32,Int32,Stream,TextFileSaveFlags,String,String,String,Encoding) Method
In This Topic
Saves the range of cells in the sheet as delimited text and saves to a stream with the specified delimiters and encoding.
Syntax
'Declaration
Public Overloads Sub SaveTextFileRange( _
ByVal As Integer, _
ByVal column As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As Stream, _
ByVal As TextFileSaveFlags, _
ByVal As String, _
ByVal columnDelimiter As String, _
ByVal As String, _
ByVal As Encoding _
)
'Usage
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim stream As Stream
Dim flags As TextFileSaveFlags
Dim rowDelimiter As String
Dim columnDelimiter As String
Dim cellDelimiter As String
Dim encoding As Encoding
instance.SaveTextFileRange(row, column, rowCount, columnCount, stream, flags, rowDelimiter, columnDelimiter, cellDelimiter, encoding)
Parameters
- row
- The starting row index.
- column
- The starting column index.
- rowCount
- The number of rows.
- columnCount
- The number of columns.
- stream
- The stream to which to save the range text.
- flags
- The export flags.
- rowDelimiter
- The row delimiter string.
- columnDelimiter
- The column delimiter string.
- cellDelimiter
- The cell delimiter string.
- encoding
- The encoding.
Return Value
true
if the data is saved to the stream successfully; otherwise, false
.
Exceptions
See Also