Spread ASP.NET 6.0 Product Documentation
LoadTextFile(String,Boolean) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > LoadTextFile Method : LoadTextFile(String,Boolean) Method


fileName
Path and name of the file from which to load the sheet
unformatted
Whether to load the data unformatted

Glossary Item Box

Loads a text file with the specified name into the sheet.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub LoadTextFile( _
   ByVal fileName As String, _
   ByVal unformatted As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim fileName As String
Dim unformatted As Boolean
 
instance.LoadTextFile(fileName, unformatted)
C# 
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.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
string s;
s = "D:\\nums.txt";
sv = FpSpread1.ActiveSheetView;
sv.LoadTextFile(s, true);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim s As String
s = "D:\nums.txt"
sv = FpSpread1.ActiveSheetView
sv.LoadTextFile(s, True)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.