Spread WPF 17
GrapeCity.Windows.SpreadSheet.UI Namespace / GcSpreadSheet Class / OpenTextFile Method
The destination sheet index for loading.
Stream from which to load.
The import flags.
Row delimiter string.
Column delimiter string.
Cell delimiter string.


In This Topic
    OpenTextFile Method (GcSpreadSheet)
    In This Topic
    Loads the CSV file with the specified separator.
    Syntax
    'Declaration
     
    Public Sub OpenTextFile( _
       ByVal sheetIndex As Integer, _
       ByVal stream As Stream, _
       ByVal flags As TextFileOpenFlags, _
       ByVal rowDelimiter As String, _
       ByVal columnDelimiter As String, _
       ByVal cellDelimiter As String _
    ) 
    'Usage
     
    Dim instance As GcSpreadSheet
    Dim sheetIndex As Integer
    Dim stream As Stream
    Dim flags As TextFileOpenFlags
    Dim rowDelimiter As String
    Dim columnDelimiter As String
    Dim cellDelimiter As String
     
    instance.OpenTextFile(sheetIndex, stream, flags, rowDelimiter, columnDelimiter, cellDelimiter)
    public void OpenTextFile( 
       int sheetIndex,
       Stream stream,
       TextFileOpenFlags flags,
       string rowDelimiter,
       string columnDelimiter,
       string cellDelimiter
    )

    Parameters

    sheetIndex
    The destination sheet index for loading.
    stream
    Stream from which to load.
    flags
    The import flags.
    rowDelimiter
    Row delimiter string.
    columnDelimiter
    Column delimiter string.
    cellDelimiter
    Cell delimiter string.
    See Also