Saves the sheet to a text file with the specified name.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim fileName As String
Dim unformatted As Boolean
Dim value As Boolean
value = instance.SaveTextFile(fileName, unformatted) |
Parameters
- fileName
- Path and name of the file to which to save the sheet
- unformatted
- Whether to save the data unformatted
Return Value
Boolean:
true if successful;
false otherwise
Remarks
Example
This example saves the sheet to a text file.
C# | Copy Code |
---|
private void Button1Click(object sender, System.EventArgs e)
{
FarPoint.Web.Spread.SheetView sv;
string s;
sv = FpSpread1.ActiveSheetView;
s = "D:\\mine.txt";
sv.SaveTextFile(s, true);
}
|
Visual Basic | Copy Code |
---|
Private Sub Button1Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sv As FarPoint.Web.Spread.SheetView
Dim s As String
sv = FpSpread1.ActiveSheetView
s = "D:\mine.txt"
sv.SaveTextFile(s, True)
End Sub |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also