Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / LoadTextFile Method / LoadTextFile(String,Boolean) Method
Path and name of the file from which to load the sheet
Whether to load the data unformatted
Example


In This Topic
    LoadTextFile(String,Boolean) Method
    In This Topic
    Loads a text file with the specified name into the sheet.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadTextFile( _
       ByVal fileName As String, _
       ByVal unformatted As Boolean _
    ) 
    'Usage
     
    Dim instance As SheetView
    Dim fileName As String
    Dim unformatted As Boolean
     
    instance.LoadTextFile(fileName, unformatted)
    public void LoadTextFile( 
       string fileName,
       bool unformatted
    )

    Parameters

    fileName
    Path and name of the file from which to load the sheet
    unformatted
    Whether to load the data unformatted
    Remarks
    Set the unformatted parameter to true to bypass the IFormatter in the StyleInfo for the cell and load the data as unformatted data or false to load it as formatted.
    Example
    This example loads a string containing delimited text into the sheet.
    FarPoint.Web.Spread.SheetView sv;
    string s;
    s = "D:\\nums.txt";
    sv = FpSpread1.ActiveSheetView;
    sv.LoadTextFile(s, true);
    
    Dim sv As FarPoint.Web.Spread.SheetView
    Dim s As String
    s = "D:\nums.txt"
    sv = FpSpread1.ActiveSheetView
    sv.LoadTextFile(s, True)
    See Also