Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Microsoft C# Professional Projects - Premier Press.pdf
Скачиваний:
177
Добавлен:
24.05.2014
Размер:
14.65 Mб
Скачать

256 Project 1 CREATING A CUSTOMER MAINTENANCE PROJECT

Creating the Monthly Worker Report

The Monthly Worker report is used to determine the work done by a worker in a month. You can also use the Monthly Worker report to determine the work done by a worker on a car during a month. You can use the Crystal Report Gallery to create the report. Figure 11-12 shows the output of the Crystal Report Gallery.

FIGURE 11-12 Monthly Worker report in the design vie w

To view Monthly Worker report, create a new form, MonthlyReport, and include a CrystalReportViewer control. Figure 11-13 shows the Monthly Worker report with the data displayed.

CRYSTAL REPORTS

Chapter 11

257

 

 

 

 

FIGURE 11-13 Monthly Worker report at run time

Summary

In this chapter, you learned that cr ystal reports are a powerful tool used to create and view reports that display selective data. Visual Studio .NET provides you with the Crystal Reports Designer tool that helps you create a wide variety of reports easily and efficiently. In addition, you can use the Crystal Reports Designer tool to modify an existing report.

The Crystal Reports Designer tool contains the Crystal Report Gallery, which allows you to select Report Expert. Report Expert is a wizard that enables you to create various kinds of crystal reports. After creating a crystal report by using Report Expert, you can use a Windows Forms Viewer control to view the report. A Windows Forms Viewer control provides you with a means to host and display the data in a report.The Windows Forms Viewer control is available in the Windows Forms toolbox and can be included in a Windows form.

Finally, you learned to create a cr ystal report by using the Crystal Report Gallery and then host the report by creating a Windows Forms Viewer control.

This page intentionally left blank

 

 

Y

 

L

 

F

 

M

 

A

 

E

 

T

 

 

Team-Fly®

Chapter 12

Deploying a

Windows

Application