Displaying Crystal Reports using WinForms and C#
page 3 of 7
by Eric Landes
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 47739/ 55

Creating a WinForm for the report

First let's create a project for the WinForm that will contain the report.  In the Visual Studio 2005 IDE, go to create New Project and select "Windows Application" or the "Crystal Reports Application".  For this example, select the Windows Application project.  We'll add an existing report to this application that we will display on the form.

Right click on the new project (called something like WindowsApplication1), and then add the burn down report from our other article. Do this by right clicking on your project, select Add, then click on Existing items.  Browse the directories and select the Burndown report to add to your project.

Next we want to add the starting windows form that will display the report.  You can use an existing one, or add one by right clicking on your project, clicking Add then new and selecting Windows Form.

In the form, we need to add the Crystal Viewer.  So open the toolbox window on the left side of the Visual Studio window.  Expand the Crystal Reports section, then drag and drop the Crystal Viewer control on the Form.  This is where we'll bind the burndown chart to.

To bind this, we simply right click on the Crystal Report Viewer (I'm assuming it's called CrystalReportViewer1).  In the Report Source select the Burndown report.  It should be prefaced with the namespace and class of your project.  Once this is bound, we can now walk through automatically logging onto your report.


View Entire Article

User Comments

No comments posted yet.




Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-28 8:16:21 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search