SlideShare a Scribd company logo
Crystal Report
Crystal Report
It is included in all major editions and ships in all languages
available with Visual Studio .NET. Crystal Reports .NET provides
developers with the fastest, most productive way to create and
integrate presentation-quality, interactive reports that scale to
meet the demands of end users.
Crystal Reports .NET is a very powerful report writer. It offers a
very well-defined object model that provides flexibility when
integrating reports into Windows and Web applications. It also
comes with a highly customizable viewer component that gives
developers control over how their reports are presented to users.
New Features in Crystal Reports .NET
• Integrated into .NET IDE
Crystal Reports .NET has been completely re-written from the
ground-up in C#. It is tightly integrated into the Visual Studio
.NET IDE. Developers no longer have to switch to a different
application to create and edit reports.
• Crystal Reports Viewer
Crystal Reports .NET provides developers with two different
report viewing components. The first can be used for displaying
reports in Windows forms. The other is a component that can be
used to display reports in a Web environment. The beauty of
these viewers is in their simplicity. Viewing a report is as simple as
setting the Report Source property of the respective viewer.
• Allowing users to interact with the report
Developers can give users the ability to interact with their reports
object via a programmable API. Developers can change report
properties by calling methods or setting properties of the viewer
object.
• ADO.NET Integration
ADO.NET is now the lingua-franca of data interchange in the .NET
world. Crystal Reports .NET provides the ability to use ADO.NET
datasets as the data source for reports.
• Expose Reports as Web Services
Reports can be exposed as Web services. This adds additional
power to Web service applications. Exposing reports as Web
services enables developers to offer real-time information (in the
form of a report) as opposed to real-time data!
The following is my Employee Table, of which the data I will show as a report in
ASP.NET using Crystal Reports.
Now open Visual Studio then select File -> New -> Web Site.
Then right-click on the Solution Explorer then select Add New Item then select
Crystal Reports then click Add.
crystalReport.pptx
Here expand something then select Create New Connection then select OLE
DB (ADO) then a pop-up window will open. Select Microsoft OLE DB Provider
for SQL Server then click Next.
Now enter your SQL Server details.
crystalReport.pptx
Now select your database then select your table and Move.
Now select the columns to be shown in the reports. Then click Finish.
Now you can see your report is ready. All the columns are already in the Details
sections. You can remove any column or you can add a new column by
drag and drop from the fields explorer to the report.
Now to add a Report Viewer for showing this Crystal Reports report. In the
Default.aspx page drag and drop a CrystalReportViewer from the toolbox like
the following.
Now for the Page_Load event write the following code:
1. using System;
2. using System.Configuration;
3. using System.Data;
4. using System.Linq;
5. using System.Web;
6. using System.Web.Security;
7. using System.Web.UI;
8. using System.Web.UI.HtmlControls;
9. using System.Web.UI.WebControls;
10. using System.Web.UI.WebControls.WebParts;
11. using System.Xml.Linq;
12. using CrystalDecisions.CrystalReports.Engine;
13.
14. public partial class _Default : System.Web.UI.Page
15. {
16. protected void Page_Load(object sender, EventArgs e)
17. {
18. ReportDocument cryRpt = new ReportDocument();
19. cryRpt.Load(Server.MapPath("EmployeeCrystalReport.rpt"));
20. CrystalReportViewer1.ReportSource = cryRpt;
21. }
22. }
Now run your application:

More Related Content

PPTX
How to embed reporting into your asp.net core web applications
PPTX
Rdlc (1)
PPTX
Crystal report
ODP
My First Report slide support
PDF
Crystal Reports Review
PDF
Ssrs tutorial
How to embed reporting into your asp.net core web applications
Rdlc (1)
Crystal report
My First Report slide support
Crystal Reports Review
Ssrs tutorial

Similar to crystalReport.pptx (20)

PDF
Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports ...
PPTX
SQL Server Reporting Services
PDF
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
PDF
德國 combit List & label 21 報表設計工具軟體新功能介紹
PPTX
Ssrs 2008 R2 webinar
PDF
Sql server 2012 tutorials reporting services
DOCX
REPORT ON (1)
PDF
Deliver Dynamic and Interactive Web Content in J2EE Applications
DOCX
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
PPT
Pnbhfl training final
DOC
235042632 super-shop-ee
DOCX
Developing ssrs-reports-for-dynamics-ax
PPTX
Planning And Tracking In Tfs 2010
PPT
It ready dw_day4_rev00
PDF
MSBI-SQL Server Reporting Services
PDF
LIBA++Lecture+Notes_Power+BI.docx.pdf
PPT
SSRS 2008 R2
PPTX
Sap BusinessObjects 4
PDF
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
PDF
Consuming web services_ax2012
Professional Microsoft SQL Server 2016 Reporting Services and Mobile Reports ...
SQL Server Reporting Services
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
德國 combit List & label 21 報表設計工具軟體新功能介紹
Ssrs 2008 R2 webinar
Sql server 2012 tutorials reporting services
REPORT ON (1)
Deliver Dynamic and Interactive Web Content in J2EE Applications
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Pnbhfl training final
235042632 super-shop-ee
Developing ssrs-reports-for-dynamics-ax
Planning And Tracking In Tfs 2010
It ready dw_day4_rev00
MSBI-SQL Server Reporting Services
LIBA++Lecture+Notes_Power+BI.docx.pdf
SSRS 2008 R2
Sap BusinessObjects 4
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Consuming web services_ax2012
Ad

More from samreen82 (7)

PPT
introduction to python programming language.ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
COMPUTER_ORGANIZATION AND COMPUTER MEMORY.ppt
PPTX
Computer system and organization types of memory
PPT
System software computer software types of software
PPTX
Chapter 1.pptx
PPTX
UNIT1IT SKILLS.pptx
introduction to python programming language.ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
COMPUTER_ORGANIZATION AND COMPUTER MEMORY.ppt
Computer system and organization types of memory
System software computer software types of software
Chapter 1.pptx
UNIT1IT SKILLS.pptx
Ad

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Pharma ospi slides which help in ospi learning
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
English Language Teaching from Post-.pdf
PPTX
Onica Farming 24rsclub profitable farm business
Abdominal Access Techniques with Prof. Dr. R K Mishra
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Revamp in MTO Odoo 18 Inventory - Odoo Slides
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
UPPER GASTRO INTESTINAL DISORDER.docx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharma ospi slides which help in ospi learning
102 student loan defaulters named and shamed – Is someone you know on the list?
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
How to Manage Starshipit in Odoo 18 - Odoo Slides
O5-L3 Freight Transport Ops (International) V1.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
English Language Teaching from Post-.pdf
Onica Farming 24rsclub profitable farm business

crystalReport.pptx

  • 2. Crystal Report It is included in all major editions and ships in all languages available with Visual Studio .NET. Crystal Reports .NET provides developers with the fastest, most productive way to create and integrate presentation-quality, interactive reports that scale to meet the demands of end users.
  • 3. Crystal Reports .NET is a very powerful report writer. It offers a very well-defined object model that provides flexibility when integrating reports into Windows and Web applications. It also comes with a highly customizable viewer component that gives developers control over how their reports are presented to users.
  • 4. New Features in Crystal Reports .NET • Integrated into .NET IDE Crystal Reports .NET has been completely re-written from the ground-up in C#. It is tightly integrated into the Visual Studio .NET IDE. Developers no longer have to switch to a different application to create and edit reports.
  • 5. • Crystal Reports Viewer Crystal Reports .NET provides developers with two different report viewing components. The first can be used for displaying reports in Windows forms. The other is a component that can be used to display reports in a Web environment. The beauty of these viewers is in their simplicity. Viewing a report is as simple as setting the Report Source property of the respective viewer.
  • 6. • Allowing users to interact with the report Developers can give users the ability to interact with their reports object via a programmable API. Developers can change report properties by calling methods or setting properties of the viewer object.
  • 7. • ADO.NET Integration ADO.NET is now the lingua-franca of data interchange in the .NET world. Crystal Reports .NET provides the ability to use ADO.NET datasets as the data source for reports.
  • 8. • Expose Reports as Web Services Reports can be exposed as Web services. This adds additional power to Web service applications. Exposing reports as Web services enables developers to offer real-time information (in the form of a report) as opposed to real-time data!
  • 9. The following is my Employee Table, of which the data I will show as a report in ASP.NET using Crystal Reports.
  • 10. Now open Visual Studio then select File -> New -> Web Site.
  • 11. Then right-click on the Solution Explorer then select Add New Item then select Crystal Reports then click Add.
  • 13. Here expand something then select Create New Connection then select OLE DB (ADO) then a pop-up window will open. Select Microsoft OLE DB Provider for SQL Server then click Next.
  • 14. Now enter your SQL Server details.
  • 16. Now select your database then select your table and Move.
  • 17. Now select the columns to be shown in the reports. Then click Finish.
  • 18. Now you can see your report is ready. All the columns are already in the Details sections. You can remove any column or you can add a new column by drag and drop from the fields explorer to the report.
  • 19. Now to add a Report Viewer for showing this Crystal Reports report. In the Default.aspx page drag and drop a CrystalReportViewer from the toolbox like the following.
  • 20. Now for the Page_Load event write the following code: 1. using System; 2. using System.Configuration; 3. using System.Data; 4. using System.Linq; 5. using System.Web; 6. using System.Web.Security; 7. using System.Web.UI; 8. using System.Web.UI.HtmlControls; 9. using System.Web.UI.WebControls; 10. using System.Web.UI.WebControls.WebParts; 11. using System.Xml.Linq; 12. using CrystalDecisions.CrystalReports.Engine; 13. 14. public partial class _Default : System.Web.UI.Page 15. { 16. protected void Page_Load(object sender, EventArgs e) 17. { 18. ReportDocument cryRpt = new ReportDocument(); 19. cryRpt.Load(Server.MapPath("EmployeeCrystalReport.rpt")); 20. CrystalReportViewer1.ReportSource = cryRpt; 21. } 22. }
  • 21. Now run your application: