Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / OpenTextFile Method / OpenTextFile(Stream,TextFileOpenFlags,String,String,String,Encoding) Method
The stream from which to load data.
The import flags.
The row delimiter string.
The column delimiter string.
The cell delimiter string.
The encoding.


In This Topic
    OpenTextFile(Stream,TextFileOpenFlags,String,String,String,Encoding) Method
    In This Topic
    Loads delimited text from a specified stream into the sheet, with or without headers, with the specified encoding.
    Syntax
    'Declaration
     
    Public Overloads Sub OpenTextFile( _
       ByVal stream As Stream, _
       ByVal flags As TextFileOpenFlags, _
       ByVal rowDelimiter As String, _
       ByVal columnDelimiter As String, _
       ByVal cellDelimiter As String, _
       ByVal encoding As Encoding _
    ) 
    'Usage
     
    Dim instance As Worksheet
    Dim stream As Stream
    Dim flags As TextFileOpenFlags
    Dim rowDelimiter As String
    Dim columnDelimiter As String
    Dim cellDelimiter As String
    Dim encoding As Encoding
     
    instance.OpenTextFile(stream, flags, rowDelimiter, columnDelimiter, cellDelimiter, encoding)
    public void OpenTextFile( 
       Stream stream,
       TextFileOpenFlags flags,
       string rowDelimiter,
       string columnDelimiter,
       string cellDelimiter,
       Encoding encoding
    )

    Parameters

    stream
    The stream from which to load data.
    flags
    The import flags.
    rowDelimiter
    The row delimiter string.
    columnDelimiter
    The column delimiter string.
    cellDelimiter
    The cell delimiter string.
    encoding
    The encoding.
    See Also