Visual Basic (Usage) | ![]() |
---|---|
Dim instance As SheetView Dim state As Object instance.LoadViewState(state) |
Parameters
- state
- State saved using the SaveViewState method
You can save the current session state by calling the SaveViewState method.
This example loads the saved view state from one sheet into another.
C# | ![]() |
---|---|
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); |
Visual Basic | ![]() |
---|---|
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) |
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
Reference
SheetView ClassSheetView Members
SaveViewState Method
IsTrackingViewState Property