Step 1 of 3: Adding C1ReportViewer to the Page
In This Topic
The C1ReportViewer control is easy to create and setup. In this step you'll create a new application and add a C1ReportViewer control to the page so you can see just how easy it is.
Complete the following steps:
- From the Visual Studio File menu select New │ Project. The New Project dialog box will appear.
- In the New Project dialog box expand a language in the left-hand pane and select Web. In the right pane, choose ASP.NET Empty Web Application, enter a Name for your application, and select OK. A new application will be created.
- In the Solution Explorer, right-click the project and choose Add Reference.
- In the Add Reference dialog box, locate and select the C1.Web.Wijmo.Controls, C1.Web.Wijmo.Controls.Design and C1.C1Report.4.dll assemblies and click OK. The references will be added.
- Right-click the project in the Solution Explorer and from the context menu choose Add │ New Item.
- In the Add New Item dialog box choose Web Form from the list of templates, name the item "Default.aspx", and click Add. The new page should open.
- In the Solution Explorer, right click the project name and choose Add | New Folder. Name the new folder "App_Data".
- Click the Design tab located below the Document window to switch to Design view.
- Navigate to the Visual Studio Toolbox and double-click the C1ReportViewer control to add it to the page. The C1ReportViewer control is a fully-functioning report viewer.
Note that the C1ReportViewer control is a fully functioning report viewer. For detailed information about the parts of the control, see Elements.
Note:There is a dependency of ReportViewer on C1.Win.BarCode.4, C1.C1Report.4, C1.Win.C1Report.4 and C1.Win.4 assemblies to support some functionalities of reports.
Now that you've created your Web site and added the C1ReportViewer control to the page, the next step is to add a report to display in the control.
See Also