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.
- Start Visual Studio .NET.
- From the File menu, choose New, Project.
- In the New Project dialog, Select a project type. For example, in the Project Types list, choose Visual C# Projects.
- Select a template. For example, in the Templates list, choose ASP.NET Web Application.
- In the Location box, leave the location path as http://localhost/ unless you prefer to save this project to another server.
- Specify a project name. The default is WebApplication1 for the first Web application.
- 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.
- If the Toolbox is not displayed, from the View menu choose Toolbox.
- 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).
- 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.
- In the Customize Toolbox dialog, click the .NET Framework Components tab.
- 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.
- 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.
- With an open project, in the Toolbox under Web Forms, select the FpSpread component.
- 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.
For more information on customizing the spreadsheet, refer to the other topics in this Developers Guide.
Return to Getting Started.