Spread for ASP.NET 7.0 Product Documentation
FpSpread Constructor()
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > FpSpread Constructor : FpSpread Constructor()


Glossary Item Box

Creates a new spreadsheet component with only one sheet.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New FpSpread()
C# 
public FpSpread()

Remarks

This constructor creates a Spread component with only one sheet. Use the other FpSpread(Int) constructor to set it up with more sheets.

Example

This example dynamically creates an instance of the spreadsheet component.
C#Copy Code
protected FarPoint.Web.Spread.FpSpread fpspread1;
protected FarPoint.Web.Spread.SheetView sheet;

fpspread1 = new FarPoint.Web.Spread.FpSpread();
sheet = new FarPoint.Web.Spread.SheetView();
fpspread1.ID = "fpspread1";
fpspread1.Sheets.Add(sheet);
fpspread1.Style.Add("Position", "Absolute");
fpspread1.Style.Add("Top", "120px");
fpspread1.Style.Add("Left", "100px");
fpspread1.Style.Add("Height", "150px");
fpspread1.Style.Add("Width", "380px");
Form1.Controls.Add(fpspread1);
Visual BasicCopy Code
Protected Form1 As System.Web.UI.HtmlControls.HtmlForm
Protected WithEvents fpspread1 As FarPoint.Web.Spread.FpSpread
Protected sheet As FarPoint.Web.Spread.SheetView

fpspread1 = New FarPoint.Web.Spread.FpSpread
sheet = New FarPoint.Web.Spread.SheetView
fpspread1.ID = "fpspread1"
fpspread1.Sheets.Add(sheet)
fpspread1.Style("Position") = "Absolute"
fpspread1.Style("Top") = "120px"
fpspread1.Style("Left") = "100px"
fpspread1.Style("Height") = "150px"
fpspread1.Style("Width") = "380px"
Form1.Controls.Add(fpspread1)

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.