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
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.