Académique Documents
Professionnel Documents
Culture Documents
Choose the As a Blank Report option and then When a table has been selected correctly, a green
click OK. checkmark will appear on the inserted table.
Choosing a Data Source Click on Close in the Data Explorer window. You
are ready to begin formatting your report.
The first thing you must do once you have created
a report is to choose the data source. Note: If your computer is already configured to
access the OU data warehouse then it will show
up under the ODBC (Open Database
Connectivity) folder and can be found by clicking
the Icon in front of the ODBC folder and
choosing ORDJ.
1
Choosing Fields for Report
Now that you have chosen your data source, it is
time to design your report.
To open the database you must either: Inserting Fields into a Report
• Double-Click the Database Fields or
• Click on the beside the Database Fields There are several options for inserting fields into a
report. The options are:
Once the data base is opened you then • Select the field you would like to insert then
• Click on the plus icon beside the database click the Insert Fields icon on the Field
you would like to pull fields from. Explorer.
• Select the fields of data you wish to use in • Select the field, press the enter key, and then
your report. Your database fields should look click in the report where you would like the
like this (Fields are circled): field to appear.
• Double click on the field, and then click in the
report where you would like the field to appear
• Drag the field to the report. When your
pointer is located exactly where you would like
the field to be placed, release the mouse
button.
• Right click on the field and choose the option
of Insert from the Short Cut Menu. Then, click
where you would like to place the field in the
report.
2
your report the field will display with a green You may also choose the field with the size that
checkmark . you desire all of your selected fields to be and
change all of your selected fields to that size.
Once you have placed a field in the Details Crystal allows you to do this using the shortcut
section, you will notice that Crystal Reports menu.
immediately places a field header in the Page
Header section. Do this by:
• Selecting the fields you wish to resize
• Right clicking on the field that has the size you
desire all of your selected fields to be
• Choose Size, and Same Width, Same
Heights, or Same Size
Once you have selected the multiple items, you Once you have placed information within the
will notice that the resizing handles appear on the report you are able to view what it currently looks
item last selected. Resizing this item will resize all like. Viewing your report early on helps to
that you have selected. determine how you will proceed in perfecting and
3
enhancing the appearance of the report. To view
your current report you must:
• Select the Print Preview icon on the
Standard Toolbar.
• A new tab is created called Preview.
4
Formatting objects within your report can be done
Styling the Report by using the Format Editor.
5
• Clicking the Insert Picture icon on the The orientation section is in the lower right hand
Supplementary Toolbar. side of the Print Setup dialog box.
• Choose the location of your graphic and click
Open. Changing Margins
• Click on your report to determine the
destination of your graphic. Crystal, by default, sets the report margins to the
narrowest possible settings available on the
You may resize or move the graphic just as you printer. To change report margins, chose File
would any object in the report. from the Menu bar, and Page Setup.
6
• Click the plus icon beside the Special
Special Field Description Fields to see the fields.
Page Number Automatically prints • Insert the special field in the same manner
number on each page that you would a database field (See Page
Total Page Count Calculates and prints two of this document).
total report pages.
Page N of M Inserts page number
with a page count (ex:
Page 2 of 6).
Report Title Places the report title
as indicated in
File/Summary Info.
Report Comments Places the report
comments as indicated
in File/Summary Info.
File Path and Name Inserts the file path and
name of the report
File Author Inserts the author as
indicated in
File/Summary info
File Creation Date Inserts the date the
report was created
Print Date Takes the date from
your PC’s calendar
Print Time Takes the time from
your PC’s clock
Data Date Prints the date the data
was last refreshed
Data Time Prints the time the data
was last refreshed
Modification Date Shows the date the
report was last saved
Record Number Assigns a number to
each record in the
report and acts as a
counter field
Group Number Allows numbering of
each group in the group
header or footer
Record Selection Inserts Record
Formula Selection formula as
created in the Record
Selection Formula
Editor
Group Selection Inserts Group Selection
Formula Formula as created in
the Group Selection
Formula Editor.
7
Selecting Specific Records Once your field is selected you must choose the
conditions you would like to apply to the sort. The
Selecting Using a Single Criteria Select Expert initially displays the “is any value”
operator. The operators included within the
Filtering records allows you to limit the data in Crystal Reports Select Expert tool are the
your report based on certain conditions. To filter following:
records in Crystal Reports, you use the Select
Expert. To open the Select Expert, you must Operator Definition
either: any value Indicates that no conditions are
• Choose the Select Expert command from the applied to the data in this field.
Report Menu, or All records display in the data
field.
• Choose the Select Expert icon from the equal to Choose a certain value and only
Standard Toolbar those elements matching that
value exactly display in the field.
If you do not have any fields selected in the report
one of Displays records with one of
when you initially opened the Select Expert then
several values.
the Choose Field dialog box will appear:
less than Displays records less than a
certain value.
less than or Same as above but includes the
equal to stated value.
greater than Displays records greater than a
certain value.
greater than or Same as above but includes the
equal to stated value.
between Selects records that fall between
two certain values.
starting with Selects records that begin with a
certain character or set of
characters.
like DOS characters like “?” or “*”
can be used to select records
with similar but not identical
values.
From here you must: in the period For Date or Date/Time fields,
• Select the field you would like to sort from use this operator to determine if
• click OK and the Select Expert dialog box a date falls within a specified
appears: range.
Formula Allows you to create selection
statements that are more
complex than simple comparison
operators.
8
Selecting Using Multiple Criteria
Sometimes it is necessary to sort using more than
one criterion. This can be done through the
Select Expert by:
• Clicking on the New tab or New button.
9
Using Formula Templates
You may also choose to insert formulas into your
report. This can be done by:
• Clicking in the Report menu
• Choosing the Edit Selection Formula option
• Choose the Record option
10
Keep Group Together – Assures that page breaks
Grouping and Sorting will not separate groups. Use this option ONLY if
your groups are small. If you turn this feature on
Creating a Group and you have a group that is longer than one
page, Crystal will move the entire group to the
Once you have determined that you would like to next page.
insert a group into your report, you must either:
• Press the Insert Group icon located on the Repeat Group Header – If you have large groups,
Supplementary toolbar or you may want the group header to appear at the
• Choose the group command in the Insert top of each new page to identify the group. This
menu. feature will do this automatically.
There are four choices used to determine the sort Crystal lets you create as many groups as you like
order of your group. They are: within a report. Multiple groups are nested inside
1. In ascending order one another. Each successive group is contained
2. In descending order completely in the group previous to it.
3. In original order
4. In specified order Crystal numbers the Group Header and Footers to
distinguish between the multiple groups.
In addition to the sort choices, there are two
additional check boxes for the following features:
11
box, you can list the records in ascending or
descending order on a specific field. Open the
Record Sort Order dialog box by either:
• Clicking the Sort Order icon located
on the Standard toolbar, or
• Opening the Report menu and choosing
Sort Records option
12
To summarize the report (after the report has
been grouped) you must do one of the following:
13
the field on which to group and Crystal puts all
Glossary records with the same value in that group.
Absolute Formatting – The data field formatting Group Header and Footer – The Group Header
option that can only be turned on or off based on and Footer are sections that appear at the
the presence or absence of ad attribute. beginning and end of each group in the report.
Between – An option in the Select Expert box. If Then Else – These formulas describe conditions
Choose records that fall between certain values. that control the display of data. These formulas
are helpful to bring attention to high or low
Boolean Expression – A Boolean expression is an performance. Example: If last year’s enrollment
expression that defines a logical relationship was less that 1000 Then make the value bold and
between two or more items. This type of italicized, Else (otherwise) make no changes.
expression always results in a TRUE or FALSE,
YES or NO answer. Keep Together – This option refers to keeping a
section together in relation to page breaks. If
Check Boxes – Boxes found in many formatting there isn’t enough page left to print the section,
and editing options that allow the user to turn a then rather than having the page break occur in
feature ON or OFF. the middle of the section, the entire section is
carried over to the next page.
Conditional Formatting – Conditional Formatting is
formatting that applies only if certain situations Last Modification Date/Time – Shows the
occur. Example: Formatting a numerical field in date/time when the report was last modified based
red if it is negative. on the PC’s clock.
Data Source - A particular set of tables, queries, Null – There is no data within the cell, not that the
dictionaries, or stored procedures that provide data value is zero.
data for a report.
Operators – Symbols that describe an operation
Data Date – Prints the date that the data in the or an action to take place between two or more
report was last refreshed. values. Operators are + - * and / < > = etc…
Syntax rules allow you to place a space before
Data Time – Prints the time the report data was and after an operator if you wish.
last refreshed.
Order of Precedence – A set of rules that
Data Type – A data type is a classification of data determines the order in which arithmetic
that appears in a field or formula. Data is one of operations are performed within a formula. Note:
the following types: string, currency, number, Multiplication and Division before Addition and
data, date/time, time, or Boolean. Subtraction.
Details Section - Details contains a row for each Page Header and Footer – These sections define
record returned from the database. items that will appear at the top and bottom of
each report page.
Export – Exporting is to distribute the report to a
disk file or through email to a different format. Print Date/Time – This inserts the date/time you
are printing the report, based on your PC clock.
Fields – Fields are accumulations of data about a
particular subject stored within a database table. Report Header and Footer – These sections
Fields are selected and placed on reports in a define items that will appear at the beginning and
variety of ways. In formula creation, fields are end of the report.
always shown within {curly braces}.
Report Gallery – A dialog box that appears when
Group – A group is a set of records that are you begin to create a new report that allows you
related to each other in some way. You specify to define how you are going to create the report.
14
Sections - The sections of your report are the
names seen in the Design Screen on the left side
of the window. Report Header, Page header,
Details, report Footer, and Page Footer.
15
Standard Toolbar Buttons Section Expert
Select Expert
The Standard toolbar contains icons for basic
editing commands. Sort Order
Save Find
Refresh
The Formatting toolbar contains various
Cut formatting commands. Most of these icons are
not active unless you have a specific object
selected.
Copy (Example: The Currency icon will only be active
on numeric fields)
Paste
Font Face
Undo
Font Size
Redo
Increase Font Size
Insert Hyperlink
Decrease Font Size
Insert Field
Italics
Insert Text Object
Underline
Insert Summary
Align Left
Report Expert
Align Center
16
Align Right TopN Expert
Percent
Increase Indent
Decrease Indent
Highlighting
Supplementary Toolbar
Insert Line
Insert Box
Insert Picture
Auto-Arrange Report
Insert Group
Insert Subreport
Insert Cross-Tab
17