Book Image

Reporting with Visual Studio and Crystal Reports

By : Mahmoud Elkoush
Book Image

Reporting with Visual Studio and Crystal Reports

By: Mahmoud Elkoush

Overview of this book

<p>Reports are documents that present focused, salient content to a specific audience. Crystal Reports is a business intelligence application that will help you design and generate reports from a wide range of data sources. It helps you summarize a good deal of information in a visually appealing manner.</p> <p>"Reporting with Visual Studio and Crystal Reports" is a practical, hands-on guide that will provide you with a number of clear, step-by-step exercises, and help you take advantage of the real power of Crystal Reports. This book will not only help you create effective reports, but also teach you how to create a reporting application.</p> <p>"Reporting with Visual Studio and Crystal Reports" will guide you through the installation of Crystal Reports and Visual Studio. As you progress from one chapter to the next, you will gradually build a reporting application. You will also learn how to select the right data, and enhance your report by grouping and sorting data. This book will also help you create chart reports to improve your report design. With this book, you will learn how to create a complete reporting application and a wide variety of reports.</p>
Table of Contents (14 chapters)
Reporting with Visual Studio and Crystal Reports
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating our report


So let's start creating our report:

  1. The SQL query that we will use in our report is shown in the following screenshot:

  2. We will create a new TableAdapter using this SQL query and name it ProductsOrdersTableAdapter, as seen in the following screenshot:

  3. Add a new crystal report to our application and name it crProductsOrders. As we see in the following screenshot, we can create our report by selecting the Using the Report Wizard option and then choosing Cross-Tab as an Expert, or we can select As a Blank Report and we will add the Cross-Tab from the report itself. We will take the second option to see how we can add or modify our Cross-Tab at any time after creating the report, so we will choose As a Blank Report as shown in the following screenshot:

  4. Right-click on Database Fields in Field Explorer and select Database Expert, and then a window appears, as shown in the following screenshot. As shown below, we will choose our TableAdapter ProductsOrders as a data source:

  5. Right...