Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / SaveTextFileRange Method / SaveTextFileRange(Int32,Int32,Int32,Int32,Stream,TextFileSaveFlags,String,String,String,Encoding) Method
The starting row index.
The starting column index.
The number of rows.
The number of columns.
The stream to which to save the range text.
The export flags.
The row delimiter string.
The column delimiter string.
The cell delimiter string.
The encoding.


In This Topic
    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 row As Integer, _
       ByVal column As Integer, _
       ByVal rowCount As Integer, _
       ByVal columnCount As Integer, _
       ByVal stream As Stream, _
       ByVal flags As TextFileSaveFlags, _
       ByVal rowDelimiter As String, _
       ByVal columnDelimiter As String, _
       ByVal cellDelimiter As String, _
       ByVal encoding 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)
    public void SaveTextFileRange( 
       int row,
       int column,
       int rowCount,
       int columnCount,
       Stream stream,
       TextFileSaveFlags flags,
       string rowDelimiter,
       string columnDelimiter,
       string cellDelimiter,
       Encoding 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
    ExceptionDescription
    Cell delimiter cannot be contained in a row or column delimiter.
    Remarks
    Note that the cell delimiter cannot be contained in a row or column delimiter.
    See Also