Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / SaveViewState Method

In This Topic
    SaveViewState Method (SheetView)
    In This Topic
    Saves the current view state of the sheet.
    Public Overridable Function SaveViewState() As Object
    Dim instance As SheetView
    Dim value As Object
    value = instance.SaveViewState()
    public virtual object SaveViewState()

    Return Value

    Object in which to save view state
    Once you have saved the session state by calling the SaveViewState method, you can load the session state by calling the LoadViewState method.
    This example loads the saved view state from one sheet into another.
    FarPoint.Web.Spread.SheetView sv;
    string s;
    s = "D:\\nums.txt";
    sv = FpSpread1.ActiveSheetView;
    sv.LoadTextFile(s, true);
    object o;
    o = sv.SaveViewState();
    Dim sv As FarPoint.Web.Spread.SheetView
    Dim s As String
    s = "D:\nums.txt"
    sv = FpSpread1.ActiveSheetView
    sv.LoadTextFile(s, True)
    Dim o As Object
    o = sv.SaveViewState()
    See Also