Spread for ASP.NET 10 Product Documentation
LoadViewState Method (SheetView)
Example 


State saved using the SaveViewState method
Loads a saved view state for a sheet.
Syntax
'Declaration
 
Public Overridable Sub LoadViewState( _
   ByVal state As Object _
) 
'Usage
 
Dim instance As SheetView
Dim state As Object
 
instance.LoadViewState(state)
public virtual void LoadViewState( 
   object state
)

Parameters

state
State saved using the SaveViewState method
Remarks
You can save the current session state by calling the SaveViewState method.
Example
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();

FpSpread2.ActiveSheetView.LoadViewState(o);
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()

FpSpread2.ActiveSheetView.LoadViewState(o)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
SaveViewState Method
IsTrackingViewState Property

User-Task Documentation

Maintaining State

 

 


Copyright © GrapeCity, inc. All rights reserved.