Spread Windows Forms 12.0 Product Documentation
LoadTextFile(SheetView,IncludeHeaders,String,String,String,String,TextFileFlags) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class > LoadTextFile Method : LoadTextFile(SheetView,IncludeHeaders,String,String,String,String,TextFileFlags) Method
Sheet into which to load the text data
Whether headers are handled as data
Row delimiter string
Column delimiter string
Cell delimiter string
String that contains data to load
Specifies how to process the data when loading from a text file
Loads the text (string) data with the specified formatting.
Syntax
'Declaration
 
Public Overloads Shared Sub LoadTextFile( _
   ByVal sheetView As SheetView, _
   ByVal includeHeaders As IncludeHeaders, _
   ByVal rowDelimiter As String, _
   ByVal columnDelimiter As String, _
   ByVal cellDelimiter As String, _
   ByVal data As String, _
   ByVal flags As TextFileFlags _
) 
'Usage
 
Dim sheetView As SheetView
Dim includeHeaders As IncludeHeaders
Dim rowDelimiter As String
Dim columnDelimiter As String
Dim cellDelimiter As String
Dim data As String
Dim flags As TextFileFlags
 
SpreadSerializer.LoadTextFile(sheetView, includeHeaders, rowDelimiter, columnDelimiter, cellDelimiter, data, flags)
public static void LoadTextFile( 
   SheetView sheetView,
   IncludeHeaders includeHeaders,
   string rowDelimiter,
   string columnDelimiter,
   string cellDelimiter,
   string data,
   TextFileFlags flags
)

Parameters

sheetView
Sheet into which to load the text data
includeHeaders
Whether headers are handled as data
rowDelimiter
Row delimiter string
columnDelimiter
Column delimiter string
cellDelimiter
Cell delimiter string
data
String that contains data to load
flags
Specifies how to process the data when loading from a text file
Example
This example uses the LoadTextFile method.
FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(fpSpread1.ActiveSheet, FarPoint.Win.Spread.Model.IncludeHeaders.None, "\t", ",", "", "FarPoint", FarPoint.Win.Spread.TextFileFlags.None);
Dim s As New FarPoint.Win.Spread.Model.SpreadSerializer
s.LoadTextFile(FpSpread1.ActiveSheet, FarPoint.Win.Spread.Model.IncludeHeaders.None, Chr(9), ",", "", "FarPoint", FarPoint.Win.Spread.TextFileFlags.None)
See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List