FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > SaveTextFile Method : SaveTextFile(Stream,Boolean) Method |
'Declaration Public Overloads Function SaveTextFile( _ ByVal stream As Stream, _ ByVal unformatted As Boolean _ ) As Boolean
'Usage Dim instance As SheetView Dim stream As Stream Dim unformatted As Boolean Dim value As Boolean value = instance.SaveTextFile(stream, unformatted)
public bool SaveTextFile( Stream stream, bool unformatted )
private void Button1Click(object sender, System.EventArgs e) { FarPoint.Web.Spread.SheetView sv; System.IO.Stream s; string fileName; sv = FpSpread1.ActiveSheetView; fileName = "D:\\mine.txt"; s = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate); sv.SaveTextFile(s, true); s.Close(); }
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 System.IO.Stream Dim fileName As String sv = FpSpread1.ActiveSheetView fileName = "D:\mine.txt" s = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate) sv.SaveTextFile(s, True) s.Close() End Sub
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