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


In This Topic
    SaveTextFile(String,Boolean) Method
    In This Topic
    Saves the sheet to a text file with the specified name.
    Syntax
    'Declaration
     
    Public Overloads Function SaveTextFile( _
       ByVal fileName As String, _
       ByVal unformatted As Boolean _
    ) As Boolean
    'Usage
     
    Dim instance As SheetView
    Dim fileName As String
    Dim unformatted As Boolean
    Dim value As Boolean
     
    value = instance.SaveTextFile(fileName, unformatted)
    public bool SaveTextFile( 
       string fileName,
       bool 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
    Set the unformatted parameter to true to bypass the IFormatter in the StyleInfo for the cell and save the data as unformatted data or false to save it as formatted.
    Example
    This example saves the sheet to a text file.
    See Also