Crystal Reports-XI R2
Crystal Reports-XI R2
1
Introduction to Crystal Reports
. 2
Competency of Crystal Reports
. 3
Benefits of Crystal Reports XI R2
• Improved usability
• Expanded Application Development Capabilities
• Integration with Business Objects Enterprise XI R2
. 4
Phases of Report Design
. 5
Defining the concept
. 6
Sourcing the data
. 7
Creating the Design
. 8
Developing and Testing the Design
. 9
Deploying and operating the report
. 10
Creating a Report
. 11
Opening Crystal Reports
• In windows click start, go to programs then select
Crystal Reports
• Click ‘Standard Report Wizard’ or ‘Blank Report’
. 12
Selecting Data
Standard Report creation wizard opens.
Click
. 13
Selecting Data (Continued)
Standard Report creation wizard has five sections.
• Current connections
List of currently connected data sources
• Favorites
List of commonly used data sources, maintained
in favorites
• History
List of the five recently used data sources
. 14
Selecting Data (Continued)
• Create New connection
Shows sub folders for various data sources you
can connect to.
• Repository
Contents of your repository through the Crystal
Enterprise explorer
. 15
Selecting Data (Continued)
Select Tables
Click
. 16
Selecting Data (Continued)
Selected Table
. 17
Design Area
Click
Field
Explorer
. 18
Design Area (Continued)
• Click Field Explorer on the Standard toolbar.
The Field Explorer dialog box appears
. 19
Field Explorer
Table Name
Column
Names
. 20
Design Tab
• Design Tab is the place where you do most of the
initial work when creating the report
• It designates and labels the various part of the report
• It has the structure and instruction for creating the
final report
. 21
Design Tab Areas
Crystal Reports automatically creates five sections in the design
tab when you begin creating the report
• Report Header
Used for Report title and other information which you want to appear at the
beginning of the report
• Page Header
Information what you want to appear at the top of each page
• Details
Body of the Report
• Report Footer
Information appear only once at the end of the report
• Page Footer
Page number and other information you want to appear on the bottom of each
page.
. 22
Design Tab Areas (Continued)
. 23
Design Tab Areas (Continued)
Two additional sections
• Group Header
Holds the Group name field
Printed once at the beginning of the group
• Group Footer
Holds the summary value
Printed once at the end of the group
. 24
Inserting Field
. 25
Inserting Field (Continued)
Object Frame
appears when
you drag a field
into the Report
. 26
Inserting Field (Continued)
View of Design Area
Inserted field
. 27
Resizing Field
. 28
Resizing Field
Resizing
Handle
Resizing
Cursor
. 29
Review the work
Click print preview on the toolbar to activate preview tab
Click
. 30
Review the work(Continued)
Preview of the Design should look similar to this
. 31
Adding Summary Info
Used to find information related to the report quickly
Enter the
Information
. 32
Adding a title
. 33
Adding a title (Continued)
. 34
Adding a title (Continued)
Title
. 35
Formatting Object
• Select the object which you want to format
• Right click and select format field from the drop
down menu
• Format Editor will open
• You can change the format for the object
- You can add borders, colors and shading to a field
- You can add hyperlinks to the objects
. 36
Formatting Object (Continued)
Selected Object
. 37
Formatting Object (Continued)
Formatted
Object
. 38
Formatting Object (Continued)
• Use the Format Painter to copy absolute or
conditional formatting properties from one report
object to one or more target objects.
• Select a source object or field in your report and click
Format Painter.
• Click the target object or field you want to apply the
formatting to.
. 39
Record Selection
• Used to restrict the records
in the report
• It is like a filter applied in
report
• Click Select Expert on the
Expert Tools toolbar
• Select the field to which
you wish to restrict the data
(Eg.Cutomer.Country)
. 40
Record Selection (Continued)
Select the
condition
. 41
Record Selection (Continued)
This selection will return only those records for which the
country is equal to England
. 42
Deleting a Field
. 43
Sorting Records
• Click Sort Record Expert
Click
Select the sort order
. 44
Sorting Records (Continued)
Sorted Output
. 45
Grouping the Report
• It provides flexibility for
customizing the report
• While on the Design
tab,Click insert group
. 46
Grouping the Report (Continued)
. 47
Adding image file to the report
Click insert
picture
. 48
Adding image file to the report (Continued)
Final Report looks like this:
. 49
HANDS ON WORKSHOP
. 50
Exercise 1
• Create a report using Blank Report
• Select Employee Table
• Select Employee ID,First name,Position,Salary
• Add Summary info for the report
• Give Title to the report
• Group the report by Employee position
• Apply sort on Employee Name
• Insert image to the report
• View the report
. 51
Report Creation Using Report wizard
• There are four report creation wizards
Standard
Cross-Tab
Mail Label
OLAP
• Click any one on the start page as per your requirement
• Then it asks you to select the data
. 52
Report Creation Using Standard Report Wizard
(Continued)
Select
Database
. 53
Report Creation Using Standard Report Wizard
(Continued)
Select Required
Fields
Click
. 54
Report Creation Using Standard Report Wizard
(Continued)
. 55
Report Creation Using Standard Report Wizard
(Continued)
. 56
Report Creation Using Standard Report Wizard
(Continued)
Apply Group
sorting If You
need
. 57
Report Creation Using Standard Report Wizard
(Continued)
. 58
Report Creation Using Standard Report Wizard
(Continued)
Apply Filter
Condition, If
required
. 59
Report Creation Using Standard Report Wizard
(Continued)
Select a
Template
. 60
Locking an Object size and position
. 61
Making a Report Read-only (Continued)
. 62
Making a Object Read-only (Continued)
Right Click object you want to make read-only
. 63
Adding Lines to Report
. 64
Editing Lines on a Report
Right click the Line you want to format
Make
Desire
Changes
. 65
Adding Boxes to Report
• Click Insert Box
• Use the pencil cursor to draw the box where required
. 66
Adding Shapes to Report
. 67
Adding Shapes to Report (Continued)
Select a number or move the slider to the right to increase the curvature
of the box corners until you obtain appropriate shape.
. 68
HANDS ON WORKSHOP
. 69
Exercise 2
. 70
Charts
. 71
Chart Layouts
• Advanced
• Group
• Cross-Tab
• OLAP
. 72
Types of Charts in Crystal Reports
. 73
Hiding Report Sections
. 74
SubReports
. 75
Difference b/w Primary Report and SubReport
SubReport
• Is inserted as an object into a primary report
• Can be placed in any report section
• Cannot contain another subreport.
• Does not have Page Header or Page Footer sections.
. 76
Inserting SubReports
• On the insert menu Click Subreport
. 77
HANDS ON WORKSHOP
. 78
Exercise 3
• Create a report
• Create Subreport in the primary report
• Create on-demand Subreport in the primary report
• Identify the difference
. 79
Summary Functions
• The Summary functions are all used to summarize field
data
• Examples:
Sum
Average
Minimum
Maximum
Count
Distinct count etc.
. 80
Summary Functions(Continued)
Click ‘Insert Summary’ on the Insert Menu
. 81
Linking Tables
. 82
Linking Tables (Continued)
Primary
Table
Lookup Table
. 83
Linking Tables (Continued)
• Auto Link
Automatically chooses links for your tables based on
common fields in tables or indexed fields (if your
database supports indexed fields).
• Link Processing Order
Specify the link processing order using Order Links
option in the Database Expert.
. 84
Linking Tables (Continued)
. 85
Cross-tab Table
• On File menu click
New
• Select a Cross-tab
Report from the drop
down menu
. 86
Cross-tab Table (Continued)
Locate the data source and select the table you want to use
. 87
Cross-tab Table (Continued)
Check the Linking between the tables
. 88
Cross-tab Table (Continued)
Add fields to the Rows, Column and Summary field
areas
Select the
Summary
operation
. 89
Cross-tab Table (Continued)
If you want chart in the Report, Select the type of chart
. 90
Cross-tab Table (Continued)
Select the fields on which you want to apply filter conditions
. 91
Cross-tab Table (Continued)
Select a
Grid Style
. 92
Cross-tab Table (Continued)
Typical Cross-tab Report
. 93
HANDS ON WORKSHOP
. 94
Exercise 4
. 95
Parameter Fields
. 96
Creating Parameter Fields
• Make sure your report
is in Design Tab
• Select Parameters
fields and click New
. 97
Creating Parameter Fields (Continued)
Enter Parameter
Name
Select a field
Click Actions,
Select Append
All Database
values
Enter Prompt
Text
. 98
Using Parameter Fields
Select ‘Selection Expert’ on
the Expert Tools menu
. 99
Running Total
. 100
Creating Running Total Field
• Select Running Total Fields in Field Explorer and Click
New
. 101
HANDS ON WORKSHOP
. 102
Exercise 5
. 103
Creating Report Alerts
Select Alerts on the Report Menu then Click Create or Modify Alert
. 104
Creating Report Alerts (Continued)
. 105
HANDS ON WORKSHOP
. 106
Exercise 6
. 107
Dynamic and Cascading Prompts
• Prompt values can be populated from values in
Database
• Prompts can be arranged in a cascade, where one
value in the prompt constraints values in subsequent
pick lists
• Report designers no longer maintain static prompt
lists in individual reports. A single prompt definition
can be stored in the repository and shared among
multiple reports, improving both runtime scalability
and design-time productivity
. 108
Creating Dynamic and Cascading Prompts
Open the sample report called Group.rpt
. 109
Creating Dynamic and Cascading Prompts
(Continued)
Click Field
Explorer
Select parameter
Fields and then
Click New
. 110
Creating Dynamic and Cascading Prompts
(Continued)
es, select
elect country
. 111
Creating Dynamic and Cascading Prompts
(Continued)
. 112
Creating Dynamic and Cascading Prompts
(Continued)
pert
. 113
Creating Dynamic and Cascading Prompts
(Continued)
Select the values for the Prompt and then Click OK
. 114
RTF Export Format
• This is optimized for ease of editing the files that it
generates
. 115
RTF Export Format (Continued)
. 116
Parameterized Sorting
. 117
Creating Parameterized Sorting
. 118
Creating Parameterized Sorting (Continued)
• Create a parameter called Sort Order that has two
values: Ascending and Descending
. 119
Creating Parameterized Sorting (Continued)
Click the
Conditional
formula button
. 120
Creating Parameterized Sorting (Continued)
• In the Formula Workshop enter your conditional
formula text
. 121
Creating Parameterized Sorting (Continued)
• When you prompted to select a Sort Order,
select the Option that you want , and click OK.
. 122
Creating Parameterized Sorting (Continued)
• Now the Report appears with groups for the field that
you selected in the Insert Group Dialog box and
sorted in the order that you selected in your parameter
prompt.
. 123
HTML Preview
. 124
Updated Repository Explorer
. 125
Updated Repository Explorer (Continued)
. 126
Updated Repository Explorer (Continued)
. 127
Workbench
. 128
Business Objects Universes
. 129
Creating Reports from Business Objects Universes
. 130
Creating Reports from Business Objects Universes
(Continued)
• Select the objects whatever you want in to the Result Objects Pane
and Query Filters then say OK
. 131
Creating Reports from Business Objects Universes
(Continued)
• Select the Query in to the Selected Tables
. 132
Creating Reports from Business Objects Universes
(Continued)
• Your Report will looks like in the below Screenshot
. 133
Advanced Reporting
Report Processing Strategy
. 134
Multi-Pass Reporting Process of the
Crystal Reports Engine
. 135
What is a “Pass”?
. 136
Report Processing
. 137
Report Processing
. 138
Report Processing
. 139
Report Processing
. 140
Report Processing
. 141
Multi-Pass Report Engine Flow
. 142
Thank You
. 143