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

Similar to crystalReport.pptx

SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting ServicesAhmed Elbaz
 
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Eric Kruis
 
德國 combit List & label 21 報表設計工具軟體新功能介紹
德國 combit List & label 21 報表設計工具軟體新功能介紹德國 combit List & label 21 報表設計工具軟體新功能介紹
德國 combit List & label 21 報表設計工具軟體新功能介紹
Cheer Chain Enterprise Co., Ltd.
 
Ssrs 2008 R2 webinar
Ssrs 2008 R2   webinarSsrs 2008 R2   webinar
Ssrs 2008 R2 webinar
Snigdha Chotani
 
Sql server 2012 tutorials reporting services
Sql server 2012 tutorials   reporting servicesSql server 2012 tutorials   reporting services
Sql server 2012 tutorials reporting servicesSteve Xu
 
Deliver Dynamic and Interactive Web Content in J2EE Applications
Deliver Dynamic and Interactive Web Content in J2EE ApplicationsDeliver Dynamic and Interactive Web Content in J2EE Applications
Deliver Dynamic and Interactive Web Content in J2EE Applications
infopapers
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Ahmed Farag
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training final
Nupur Mishra
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
homeworkping3
 
Developing ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axDeveloping ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axNicc Ngo
 
Planning And Tracking In Tfs 2010
Planning And Tracking In Tfs 2010Planning And Tracking In Tfs 2010
Planning And Tracking In Tfs 2010Ahmed Nasr El Din
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting Services
Thejaswi shasthri
 
LIBA++Lecture+Notes_Power+BI.docx.pdf
LIBA++Lecture+Notes_Power+BI.docx.pdfLIBA++Lecture+Notes_Power+BI.docx.pdf
LIBA++Lecture+Notes_Power+BI.docx.pdf
Divya Thakur
 
SSRS 2008 R2
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2
tomerl
 
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Real-Time Operational Reporting for Oracle E-Business Suite with CS*RapidReal-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Craig O'Neill
 
Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS Reporting
Danielson Samuel
 

Similar to crystalReport.pptx (20)

SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting Services
 
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203Crystal%20 reports%202008%20reviewer's%20guide%20version%203
Crystal%20 reports%202008%20reviewer's%20guide%20version%203
 
德國 combit List & label 21 報表設計工具軟體新功能介紹
德國 combit List & label 21 報表設計工具軟體新功能介紹德國 combit List & label 21 報表設計工具軟體新功能介紹
德國 combit List & label 21 報表設計工具軟體新功能介紹
 
Ssrs 2008 R2 webinar
Ssrs 2008 R2   webinarSsrs 2008 R2   webinar
Ssrs 2008 R2 webinar
 
Sql server 2012 tutorials reporting services
Sql server 2012 tutorials   reporting servicesSql server 2012 tutorials   reporting services
Sql server 2012 tutorials reporting services
 
REPORT ON (1)
REPORT ON (1)REPORT ON (1)
REPORT ON (1)
 
Deliver Dynamic and Interactive Web Content in J2EE Applications
Deliver Dynamic and Interactive Web Content in J2EE ApplicationsDeliver Dynamic and Interactive Web Content in J2EE Applications
Deliver Dynamic and Interactive Web Content in J2EE Applications
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
 
Pnbhfl training final
Pnbhfl training finalPnbhfl training final
Pnbhfl training final
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
 
Developing ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axDeveloping ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-ax
 
Planning And Tracking In Tfs 2010
Planning And Tracking In Tfs 2010Planning And Tracking In Tfs 2010
Planning And Tracking In Tfs 2010
 
It ready dw_day4_rev00
It ready dw_day4_rev00It ready dw_day4_rev00
It ready dw_day4_rev00
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting Services
 
LIBA++Lecture+Notes_Power+BI.docx.pdf
LIBA++Lecture+Notes_Power+BI.docx.pdfLIBA++Lecture+Notes_Power+BI.docx.pdf
LIBA++Lecture+Notes_Power+BI.docx.pdf
 
SSRS 2008 R2
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2
 
Sap BusinessObjects 4
Sap BusinessObjects 4Sap BusinessObjects 4
Sap BusinessObjects 4
 
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Real-Time Operational Reporting for Oracle E-Business Suite with CS*RapidReal-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
Real-Time Operational Reporting for Oracle E-Business Suite with CS*Rapid
 
Consuming web services_ax2012
Consuming web services_ax2012Consuming web services_ax2012
Consuming web services_ax2012
 
Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS Reporting
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 

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.
  • 12.
  • 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.
  • 15.
  • 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: