Spread ASP.NET 6.0 Product Documentation
Adding a Component to a Web Form (Project)
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Developer's Guide > Getting Started > Working with the Component > Adding a Component to a Web Form (Project)

Glossary Item Box

Adding an FpSpread component to a project in Visual Studio .NET (2002 or 2003) involves the following steps of adding the component to a Project. You can either open an existing Project or create a new one.

Return to the overview of Working with the Component.

Return to the overview of Getting Started.

Step 1. Start Visual Studio .NET (2002 or 2003). If, instead you are using Visual Studio 2005, Visual Studio 2008, or Visual Studio 2010, refer to Adding a Component to a Web Form (Web Site).

Step 2. Create a new project.

  1. Start Visual Studio .NET.
  2. From the File menu, choose New, Project.
  3. In the New Project dialog, Select a project type. For example, in the Project Types list, choose Visual C# Projects.
  4. Select a template. For example, in the Templates list, choose ASP.NET Web Application.
  5. In the Location box, leave the location path as http://localhost/ unless you prefer to save this project to another server.
  6. Specify a project name. The default is WebApplication1 for the first Web application.
  7. Click OK.

    If your project does not display the Solution Explorer, from the View menu, choose Solution Explorer.

    In the Solution Explorer, right-click on the form name, WebForm1.aspx. You can rename it. Choose Rename from the pop-up menu, then type the new form name.

Step 3. Add an FpSpread component to the tool box. This only has to be done once.

  1. If the Toolbox is not displayed, from the View menu choose Toolbox.
  2. Once the Toolbox is displayed, look in the Web Forms category (or in other categories if you have installed Spread and placed the toolbox icon in a different category).
  3. If the FpSpread component is not in the Toolbox, right-click in the Toolbox, and from the pop-up menu choose Customize Toolbox or Add/Remove Items.
  4. In the Customize Toolbox dialog, click the .NET Framework Components tab.
  5. In the .NET Framework Components tab, the FpSpread component should be displayed in the list of components. Select the FpSpread component check box and click OK.

    If the FpSpread component is not displayed in the list of components, click Browse and browse to the installation path for the Spread for ASP.NET component. Once there, select SpreadWeb.dll and click Open. The FpSpread component is now displayed in the list of components. Select it and click OK.

  6. You can test that the component has been added by opening a project and inserting the component.

Step 4. Add the FpSpread component to the empty Web Form.

  1. With an open project, in the Toolbox under Web Forms, select the FpSpread component.
  2. On your Web Forms page, draw an FpSpread component by dragging a rectangle the size that you would like the initial component or simply double click on the page.The FpSpread component appears.

FpSpread in Toolbox

For more information on customizing the spreadsheet, refer to the other topics in this Developers Guide.

Return to Getting Started.

© 2002-2012 GrapeCity, Inc. All Rights Reserved.