Date post: | 07-Apr-2018 |
Category: |
Documents |
Upload: | ashishagrawal555 |
View: | 227 times |
Download: | 0 times |
of 11
8/3/2019 Crystal Reports and ASP.net 2.0
1/11
Crystal Reports and ASP.NET 2.0
Building a Web Reports Interface
8/3/2019 Crystal Reports and ASP.net 2.0
2/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Crystal Reports Web Interface
What is a Reports Interface?A set of ASP.NET Web pages designed to organize and present an unlimited collection ofCrystal Reports. Information about each report is stored in SQL 2000 reportid, reporttitle,reportfile, reportcategory.
Features
1.Reports listed in simple grid-like format2.Users can pick reports based on multiple categories3.Single driver page used to launch reports in CrystalReportsViewer
Advantages
1.Easy to deploy reports throughout the organization-reports become immediately available once copied to repository
2.Ease of maintenance (database driven)
-reports and categories can be added, deleted, renamed-no special coding.3.Cost-effective4.No special software browser-based5.Uses standard Microsoft tools (VS2005
8/3/2019 Crystal Reports and ASP.net 2.0
3/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
New Features in ASP.NET 2.0
Crystal Reports project templates (ASP.NET Crystal Reports Website)Visual Studio 2005 has Crystal Report project templates for Visual Basic, C#, and J# WebSites. The project templates create a default Crystal Reports project and start the NewReport Creation Wizard to help new users create reports.
Smart TagsIn Visual Studio 2005, when you add a .NET control to a Web Form, a Smart Tag panelappears. The CrystalReportViewer Smart Tag panel lets you create, open, or edit aCrystal report from a Web or Windows form.
ReportSource and DataSource controls
The ReportSource control contains a report that encapsulates the data, whereas a DataSourcecontrol (such as SqlDataSource) contains the data itself. The ReportSource control is also partof the simplified tag-based application development model provided with ASP.NET version 2.0.
Automatic data bindingWith automatic data binding, you no longer need to call the DataBind() method in the code-behind class when binding to a file directory path through the Properties window.
8/3/2019 Crystal Reports and ASP.net 2.0
4/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Report Interface Components
Presentation Layer
Allows users to select froma list of available crystal reportsbased on multiple categories.
Reports driver
Middle Tier - A single .NET page thatcan launch any known report on demand.
Reports Layer - Repository of available reports
DATA ACCESS LAYER (DAL) - Database tables used for application queries and report selection
reportDriver.aspx
Financial Statement.rptSales by Category.rptEmployee Sales.rpt
reportMenu.aspx
8/3/2019 Crystal Reports and ASP.net 2.0
5/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Reports Database Table
8/3/2019 Crystal Reports and ASP.net 2.0
6/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Report Selection
8/3/2019 Crystal Reports and ASP.net 2.0
7/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Launch Report in CrystalViewer
8/3/2019 Crystal Reports and ASP.net 2.0
8/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Source Code (reportMenu.aspx)
Report Category:
8/3/2019 Crystal Reports and ASP.net 2.0
9/11
8/3/2019 Crystal Reports and ASP.net 2.0
10/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
VB Class (reportDriver.aspx.vb)
Partial Class ReportDriverInherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadMe.CrystalReportSource1.Report.FileName = getReportFileName()
End Sub
Private Function getReportFileName()Dim dv As System.Data.DataView = SqlDataSource1.Select(DataSourceSelectArguments.Empty)
Return "reports/" & dv.Table.Rows(0)("ReportCategory") & "/" & dv.Table.Rows(0)("ReportFile")End Function
End Class
8/3/2019 Crystal Reports and ASP.net 2.0
11/11
PARKER Design Group, Inc. - Crystal Reports and ASP.NET 2.0 Building a Web Reports Interface
Resources
My Contact Info:
Charlie Parker
PARKER Design Group, Inc.
1101 Pennsylvania Avenue, NW
Suite 600
Washington, DC 20004(202) 756-4980
mailto:[email protected]:[email protected]