FarPoint.Win.Spread アセンブリ > FarPoint.Win.Spread.Model 名前空間 > SpreadSerializer クラス > LoadTextFile メソッド : LoadTextFile(SheetView,Stream,Boolean,IncludeHeaders,String,String,String,Encoding) メソッド |
'宣言
Public Overloads Shared Sub LoadTextFile( _ ByVal sheetView As SheetView, _ ByVal stream As Stream, _ ByVal unformatted As Boolean, _ ByVal includeHeaders As IncludeHeaders, _ ByVal rowDelimiter As String, _ ByVal columnDelimiter As String, _ ByVal cellDelimiter As String, _ ByVal encoding As Encoding _ )
public static void LoadTextFile( SheetView sheetView, Stream stream, bool unformatted, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding )
System.IO.Stream stream; stream = System.IO.File.Open("c:\\myfile.txt", System.IO.FileMode.Open); FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(fpSpread1.ActiveSheet, stream, false, FarPoint.Win.Spread.Model.IncludeHeaders.None, '\r', ",", "", System.Text.Encoding.ASCII);
Dim stream As System.IO.Stream stream = System.IO.File.Open("c:\myfile.txt", System.IO.FileMode.Open) FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(FpSpread1.ActiveSheet, stream, False, FarPoint.Win.Spread.Model.IncludeHeaders.None, Chr(13), ",", "", System.Text.Encoding.ASCII)