Spread for ASP.NET 11 Product Documentation
Save(SheetSkin,String) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > Save Method : Save(SheetSkin,String) Method
Name of the skin you are saving
The path and file name to which to save the skin
Saves a skin to a file.
Syntax
'Declaration
 
Public Overloads Shared Sub Save( _
   ByVal skin As SheetSkin, _
   ByVal fileName As String _
) 
'Usage
 
Dim skin As SheetSkin
Dim fileName As String
 
SheetSkin.Save(skin, fileName)
public static void Save( 
   SheetSkin skin,
   string fileName
)

Parameters

skin
Name of the skin you are saving
fileName
The path and file name to which to save the skin
Example
This example saves a skin and then loads it in another spreadsheet.
FarPoint.Web.Spread.SheetSkin sk = new FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat,
Color.DarkGreen, 2, Color.YellowGreen, GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Color.Empty,
Color.Empty, false, false, true, true, true);
FarPoint.Web.Spread.SheetSkin sk1;
sk.Apply(FpSpread1);
if (IsPostBack)
{
    sk1.Save(sk, "D:\\skinsave1.skn");
    sk1.Load("D:\\skinsave1.skn").Apply(FpSpread2);
}
Dim sk As New FarPoint.Web.Spread.SheetSkin("TestSkin", Color.LightGoldenrodYellow, Color.Wheat, Color.DarkGreen, 2, Color.YellowGreen,
GridLines.Both, Color.Thistle, Color.BlanchedAlmond, Color.Wheat, Color.DarkBlue, Nothing, Nothing, False, False, True, True,
True)
Dim sk1 As FarPoint.Web.Spread.SheetSkin
sk.Apply(FpSpread1)
If IsPostBack Then
    sk1.Save(sk, "D:\skinsave1.skn")
    sk1.Load("D:\skinsave1.skn").Apply(FpSpread2)
End If
See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List