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

DATABASE INTERACTION USING ADO.NET

Chapter 10

237

 

 

 

 

After creating the JobDetails form using the Data Form Wizard, you can test the form by either pressing the F5 key or clicking on the Start command in the Debug menu.

Summary

In this chapter, you learned about the basics of ADO.NET. ADO.NET is a data access model that helps your application to communicate with data sources, such as the Microsoft SQL Server data source. In addition, by using ADO.NET, your application can interact with other OLE DB data sources, such as Oracle. Next, you learned to create database connections of a Windows form with a data source. Finally, you looked at the code for each of the Windows forms created for the Customer Maintenance project.

This page intentionally left blank

 

 

Y

 

L

 

F

 

M

 

A

 

E

 

T

 

 

Team-Fly®

Chapter 11

Crystal Reports

240 Project 1 CREATING A CUSTOMER MAINTENANCE PROJECT

Crystal reports are a powerful tool used to create and view reports that display selective data. For example, you can create a crystal report to view the sales

data of an organization for a particular year.

You have been creating crystal reports in various languages. Visual Studio .NET also 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.

In this chapter, you will be introduced to the Crystal Reports Designer tool. Next, you will learn to create a crystal report by using the Crystal Report Gallery present in the Crystal Reports Designer tool. Finally, you will use the Windows Forms Viewer control to host and view the reports in a Windows form.

Introduction to the Crystal Reports Designer Tool

Visual Studio .NET provides you with a powerful tool called the Crystal Reports Designer tool for creating and modifying crystal reports. It is a common tool for creating reports in the .NET Framework,which can be used by any language supported by the .NET Framework, such as Visual Basic .NET, Visual C#, and Visual C++.

The Crystal Reports Designer tool enables you to create reports that can be hosted in a Windows platform or published as Report Web Services on a Web server. To view a crystal report in a Windows application, Visual Studio .NET provides you with a Windows Forms Viewer control. However, to view a crystal report in a Web application, you use a Web Forms Viewer control. In this chapter, you will be creating cr ystal reports for a Windows application.

The Crystal Reports Designer tool contains the Crystal Report Gallery, which allows you to select Report Expert. Report Expert is a wizard that helps you create various types of crystal reports. You will learn more about the Crystal Report Gallery and Report Expert in the following sections.