Unit 5 Crystal Reports
Unit 5 Crystal Reports
Unit 5 Crystal Reports
Crystal Reports
Reporting tool
Business intelligence application
Used to design and generate reports using data source
Purpose
Analysis
Read-only
Requires minimal code
Available as integrated feature of visual studio.NET
Rapid report development - designer interface eases coding work for the programmer
Complicated reports with interactive charts
Can interact with other controls - ASP.NET Web form
Can programmatically export the reports into widely used formats -.pdf, .doc, .xls, .html and .rtf
Pull method
Database driver directly retrieves the data from the data source
Does not require to write code for creating a connection and retrieving data from the data
source
Push method
Write code to connect to the data source & retrieve data
Data is cached in dataset
Multiple crystal reports accesses data
//code
using System;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Web;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
usingSystem.Data.SqlClient;
usingCrystalDecisions.CrystalReports.Engine;