- •Welcome to Seagate Crystal Reports
- •Welcome
- •Two kinds of Hands-On tutorials
- •Command, button, key, and control conventions
- •Using Seagate Crystal Reports documentation
- •Seagate Crystal Reports online Help features
- •If you need more help...
- •Installation Requirements
- •Installing Seagate Crystal Reports
- •Installing on a network workstation
- •Upgrading from a previous version
- •Quick Start
- •Subreports expand report usefulness
- •Query Designer adds ad-hoc querying capabilities
- •Parameter fields mean multi-purpose reports
- •Text objects give you text with intelligence
- •Preprinted-form reports easier than ever
- •More powerful formulas extend your capabilities
- •Web solution serves up variety of online reports
- •HTML exporting simplifies Web activities
- •New database support improves data access
- •Running totals made easy
- •Smart Navigation
- •Learning Seagate Crystal Reports
- •User’s Guide
- •Online Help
- •Books Online
- •Sample Reports
- •Glossary
- •Sample Data - CRAZE.MDB
- •Suggested learning paths
- •The application window
- •Menu bar
- •Standard toolbar
- •Supplementary toolbar
- •Format bar
- •Status bar
- •Shortcut menus
- •Cursors
- •Design Tab
- •Preview Tab
- •Other fundamentals
- •HANDS-ON (Report Design Environment)
- •How to add, delete, and move guidelines
- •How to move and position objects using guidelines
- •How to turn the grid on/off
- •How to zoom your report in and out
- •How to undo/redo activities
- •How to drill down on summarized data
- •HANDS-ON (Sections and Areas)
- •How to add, delete, move, and merge sections
- •How to split and resize sections
- •Basic report design
- •How to design a prototype
- •Concepts in reporting
- •Beyond basic reports
- •HANDS-ON (Report Creation and Design)
- •How to select data and begin creating a report
- •How to add and link multiple tables
- •How to insert database fields
- •How to insert special fields
- •How to insert a page n of N field
- •How to insert text objects
- •How to use a database field in a text object
- •How to insert a picture
- •How to select, move, and resize objects
- •How to hide parts of the report
- •HANDS-ON (Finishing Your Report)
- •How to insert page headers and footers
- •How to add a title page to your report
- •How to add summary information to your report
- •Printing considerations
- •Design solutions for printing/distributing
- •Report creation checklist for distributed reports
- •Updating printer drivers
- •Report distribution
- •HANDS-ON (Distributing Your Report)
- •How to export reports
- •How to fax a report
- •How to request reports from a web browser
- •How to specify parameter field values
- •How to log on to a database
- •How to view plain HTML reports
- •Overview
- •Getting started
- •Record Selection
- •Grouping and sorting
- •Completing the report
- •Introduction
- •Working with Arbor Essbase data
- •HANDS-ON (Reporting on OLAP data)
- •How to create a cross-tab with Essbase data
- •Using multiple sections in reports
- •HANDS-ON (Multiple Section Reports)
- •How to work with text objects
- •How to create a form letter using a text object
- •How to format objects conditionally
- •How to print conditional messages in form letters
- •How to alternate background colors for rows
- •How to eliminate blank lines
- •How to add blank lines conditionally
- •Formatting concepts
- •Absolute formatting
- •Types of formatting properties
- •Conditional formatting
- •HANDS-ON (Absolute Formatting)
- •How to add color, shading, and borders
- •How to add/edit lines and boxes
- •How to change margins
- •How to add/delete white space between rows
- •How to set page orientation and paper size
- •HANDS-ON (Conditional Formatting)
- •How to flag values that meet certain conditions
- •Record selection
- •Group selection
- •Record selection formula templates
- •HANDS-ON (Record and Group Selection)
- •How to create a record or group selection formula
- •How to use record/group selection templates
- •How to select the top or bottom N groups
- •Sorting, Grouping, and Totalling Overview
- •Creating custom groups
- •HANDS-ON (Sorting, Grouping, and Totalling)
- •How to do a single field sort
- •How to do a multiple field sort
- •How to group data
- •How to sort records within groups
- •How to summarize grouped data
- •How to subtotal grouped data
- •How to sort based on summarized group values
- •How to create multiple levels of subtotals
- •How to group data in intervals
- •How to calculate a percentage of the grand total
- •How to create group headers
- •What are formulas?
- •Other formula conventions
- •Formula syntax
- •How formulas are evaluated - Order of precedence
- •HANDS-ON (Formulas 101)
- •How to insert a formula in your report
- •How to delete formulas from your report
- •How to copy formulas from online Help
- •How to copy formulas from one report to another
- •How to create if-then-else formulas
- •How to format text with formulas
- •How to use variables in formulas
- •How to declare a variable
- •How to assign a value to a variable
- •How to conditionally assign values to variables
- •How to use an array in a formula
- •How to use a range in a formula
- •How to use semicolons in formulas
- •How to fine tune group selection formulas
- •How to fine tune record selection formulas
- •How to debug a formula
- •Introduction
- •HANDS-ON (Advanced Totalling)
- •How to maintain running totals in a list
- •How to subtotal running totals within groups
- •How to subtotal without grouping
- •How to subtotal true A to B, A to C reports
- •Parameter field objects overview
- •Multiple parameter fields
- •Parameter field considerations
- •HANDS-ON (Parameter Field Objects)
- •How to create a parameter field
- •How to use a parameter field in a formula
- •How to respond to parameter field prompts
- •How to use wildcards with parameter fields
- •How to set a report title using parameter fields
- •How to set sort order using parameter fields
- •Graphing Overview
- •Choosing a graph or chart type
- •Where to place your graph
- •Data you can graph on
- •Before you create your graph
- •HANDS-ON (Graphing)
- •How to graph on a summary or subtotal field
- •How to graph on a details field
- •How to graph on a formula field
- •How to graph on cross-tab summaries
- •How to edit graphs using PGEditor
- •How to use the underlay feature with graphs
- •OLE Objects Overview
- •Inserting OLE objects in your reports
- •Linked vs. Embedded Objects
- •The dynamic OLE menu commands
- •OLE and the Picture command
- •General OLE considerations
- •HANDS-ON (OLE Objects)
- •How OLE objects are represented in your report
- •How to use OLE - General Overview Tutorial
- •How to insert a graphic/picture as an OLE object
- •What are subreports?
- •Unlinked vs. linked subreports
- •How subreport linking works
- •HANDS-ON (Subreports)
- •How to insert a subreport
- •How to preview your subreport
- •How to combine unrelated reports using subreports
- •How to use subreports with unlinkable data
- •Cross-tab overview
- •Cross-tab components
- •HANDS-ON (Cross-Tab Objects)
- •How to create a cross-tab object
- •How to format a cross-tab
- •How to print cross-tabs that span multiple pages
- •The Crystal Query Designer
- •HANDS-ON (Queries)
- •How to create a new query
- •How to add tables to a query
- •How to link tables and specify a join type
- •How to add fields to a query
- •How to identify unique values in a query
- •How to summarize data with aggregate functions
- •How to sort records according to field values
- •How to specify records to be included in a query
- •How to select groups to be included in a query
- •How to create an SQL expression
- •How to create a query from another Crystal Query
- •How to select a query for a report
- •How to use a parameter field in a query
- •Dictionaries Overview
- •HANDS-ON (Dictionaries)
- •How to create a new dictionary
- •How to add a data file
- •How to open an SQL or ODBC data source
- •How to link multiple tables
- •How to select tables and fields for users
- •How to add/create formulas
- •How to move fields/field headings within the list
- •How to update the location of a database table
- •How to add a new field heading
- •How to add Help text
- •How to add a graphic
- •How to create sample data for users to browse
- •How to edit an existing dictionary
- •How to convert a 3.x or 4.x dictionary file
- •How to select a dictionary for a report
- •Databases Overview
- •For additional information
- •HANDS-ON (Working With Databases)
- •How to open Access queries through DAO
- •How to open Access queries through ODBC
- •How to open Access parameter queries
- •How to set up an ODBC data source
- •How to check settings for an ODBC data source
- •How to log on to an ODBC data source
- •How to add an ODBC database table to a report
- •How to log on to MS SQL Server via ODBC
- •How to log off an ODBC data source
- •How to set up an A to B, A to C link
- •How to edit an SQL query
- •How to use an ACT! database
- •How to open the NT Event Log
- •Introduction
- •Four types of data
- •Direct access database files
- •ODBC data sources
- •Crystal Query Designer files
- •Crystal Dictionary files
- •Multi-pass reporting
- •Product support
- •Web support
- •E-mail support
- •Fax support
- •Telephone support
- •Extended technical support policy
- •Product registration
- •Product return policy
- •Product replacement policy
- •Glossary
Basic report design
Deciding on
the content of your report
The purpose of this topic is to suggest a structured approach to preparing reports with Seagate Crystal Reports. The approach includes the following elements:
●deciding on the content of your report,
●developing a prototype on paper,
●setting up the prototype using Seagate Crystal Reports,
●specifying the records/groups to be included in the report,
●manipulating the data with formulas and functions,
●grouping, summarizing, and sorting your data,
●editing and formatting the data,
●adding graphic enhancements and OLE objects, and
●printing the finished report.
This section has been designed to provide you with a conceptual understanding of the reporting process.
Before you do anything else, you should outline the information you want your report to provide. Use the following list of questions as a guide in making that outline:
●What is the overall purpose of the report?
●Who is going to read the report?
●What is the report title going to be?
●What information do you need besides the title to identify the report?
¾Where is that information to come from?
¾If the information exists in a database table, what types of fields is the data stored in: number, text, etc.?
●What identifying information do you want to appear at the bottom of each page? At the top of each page?
¾Where will that information come from?
96 |
Seagate Crystal Reports User’s Guide |
¾If the information exists in a database table, what types of fields is the data stored in: number, text, etc.?
●What specific data do you want to appear in the body of the report?
¾Where will that data come from?
¾Does that data exist in data fields or does it need to be calculated from data field values?
¾What types of fields is the data stored in: number, text, etc.?
¾Do you want your data sorted?
¾How?
¾Do you want the data broken into groups?
¾What kind of groups?
¾Do you want your data summarized?
¾Subtotaled? Averaged? Counted? or some other kind of summary value?
¾What do you want to total?
¾Do you want to show summaries for all the groups or just the top or bottom groups?
¾Do you want the group summaries sorted in any special order?
¾Do you want to add text labels to the summaries?
●What information, if any, do you want flagged on the report?
¾How do you want it flagged?
¾By color?
¾By a text flag?
●What other information do you want highlighted in some way so that it really stands out?
¾How do you want it highlighted?
¾Colored text?
Reporting 101 |
97 |
Purpose
¾Special font or font size?
¾Borders or background color?
¾Do you want to label the highlighted information as well?
●Do you want the report to be based on all records in the database or only on specific records?
¾Which records?
What is the overall purpose of the report?
Reports are management tools. Their purpose is to help individuals quickly grasp the essential elements and relationships found in raw data so they can make effective decisions. For a report to be effective, it has to present the right data in a logical way. If it presents the wrong data or if it presents the right data in a haphazard manner, the report may slow the decision making process or even encourage incorrect decisions.
A good starting place in the development of a report is to write out the purpose of the report in a sentence or two. The purpose statement helps you focus on your primary needs, and it gives your report both a starting point and a goal. Here are some examples of purpose statements:
●The purpose of this report is to show monthly and year-to- date sales by sales representative, compare this year's numbers to last year, and flag representatives whose sales figures do not meet company standards.
●The purpose of this report is to show sales activity for each item in inventory, and to suggest reorder quantities based on that activity.
●The purpose of this report is to calculate bowling averages and handicaps for each member of the bowling league.
Clarifying the purpose of the report before you start is a critical step in the overall process. A report without a clear purpose is like a meeting without a clear agenda; it rambles and accomplishes little.
98 |
Seagate Crystal Reports User’s Guide |
Readers
Title
Do you know
the data you want to use in your report?
Who is going to read the report?
A single report is often used by many individuals. A detailed, company-wide sales report, for example, may be used by sales representatives, the regional sales manager, the national sales manager, and the Chief Operating Officer (COO).
Each of these individuals will be interested in different aspects of the report.
●A sales representative will use the report to evaluate his/ her individual sales performance and to compare that performance to that of other representatives in the region.
●The regional sales manager will use the report to evaluate the representatives in his/her region and to compare the region's performance to that of other regions.
●The national sales manager will use the report to evaluate the performance of his/her regional managers and to compare overall sales to the current sales forecasts.
●The COO will use the report to evaluate the performance of the Vice President of Marketing and the sales department as a whole, and to project such things as manufacturing needs, warehouse locations, etc.
Since each of the users of the report has different interests, it is important to plan the report so it includes the information each of the users is looking for.
What is the report title going to be?
Write out a working title for your report. You may decide to change it later, but at least you will have a title to use when creating your prototype report.
Do you know the type of database you are reporting from? Whether you will be reporting off a data file, SQL/ODBC, or a dictionary?
If you do not know, ask an internal source for the database type and location of your data and to set you up with access to that database if necessary. See Data Sources, Page 583.
Reporting 101 |
99 |
Header information
Header
information sources
Data types in the header
Footer information
Are you familiar enough with your data to find the information you want? When you are looking for the Customer Contact name, can you find the field in a database table?
Your MIS professional, database administrator, or co-workers will have to help you become familiar with your data.
What information do you need besides the title to identify the report?
You may wish to include the current date, information on who prepared the report, a block of text to describe the purpose of the report, the range of data covered, or something similar. If you are going to include such information, write it down so you can use it in preparing your prototype.
Where will that information come from?
The information can come from a variety of sources, depending on the kind of information you plan to use.
●The current date can be inserted using the PRINT DATE FIELD command on the Insert|Special Field menu.
●Information on who prepared the report might be drawn from individual data fields in the database table(s) used. (If it is to be drawn from a database table, what table? Or, what combination of tables?)
●A block of text can be created as a text object and placed anywhere on the report.
As you begin to think of where the information is to come from, you begin formally structuring the report.
If the information exists in a database, what types of fields contain the data: number, text, etc.?
Seagate Crystal Reports uses different rules for working with different types of data. You will find it helpful later if you note the data type of each piece of data you plan to draw from a database.
What identifying information do you want to appear at the bottom of each page (page number, page n of N, report name, author's name, the word “Confidential”)? See How to insert a page n of N field, Page 119.
100 |
Seagate Crystal Reports User’s Guide |
Footer data sources
Data types in the footer
Report body data
Body data sources
Existing or calculated?
Where will the information come from?
As with Report Header data, the information for your Report Footer can come from a variety of sources, depending on the kind of information you plan to use.
If the information exists in a database table, what types of fields is the data stored in: number, text, etc.?
What specific data do you want to appear in the body of the report?
When you think of a report, it is probably the body of the report that you think of. The body should contain all the data that you need to fulfill the statement of purpose you wrote for the report. It should also contain all of the data needed by the various users that you have identified.
Where will that data come from?
This step requires you to look at the available database table(s). Seagate Crystal Reports allows you to combine data from different databases to create your reports, so you have a great deal of flexibility in your work.
●Much of the data in a typical report will be taken directly from data fields. Which data fields will you be using and where are they located?
●Other data will be calculated based on data fields. Which data fields will be used in the calculations?
●Still other data will be placed directly into the report using text objects (headings, notes, labels, etc.).
Does the data exist in data fields or does it need to be calculated from data field values?
Some report information can be drawn directly from data fields (sales information, for example); other information will have to be calculated based on data field values (sales commission, for example, based on the relationship of sales to quota). In your planning, it can be helpful to segregate or flag data that needs to be calculated from that which can be used directly. See Formulas 101, Page 321.
Reporting 101 |
101 |
Data types in the body
Record or
group selection
Groups
Group values
Group value positions
Grand totals,
subtotals, averages, etc.
What types of fields contain the data: number, text, etc.?
While it is important to understand data types for all data you will be using, it is of critical importance that you know the data type for data fields that will be used in calculations. Functions and operators work with specific kinds of data, so it's important to know the data type to know which functions and operators you can use in your calculations. Search for Functions Index and Operators Index or the function or operator by name in Seagate Crystal Reports online Help.
Do you want the report to be based on all records or groups in the database or only on specified records or groups?
Seagate Crystal Reports gives you the opportunity to base a report on all records in a given database, or on a limited set of records from the database. Using Seagate Crystal Reports you can select records based on simple date ranges or comparisons, or you can create complex formulas to identify the records to be included. Take a few minutes to determine the records needed for your report and list the criteria to be used for selecting those records. See Record and Group Selection, Page 249.
Do you want your data organized into groups? How? By customer? By date? Or by other criteria? Seagate Crystal Reports provides several options for grouping data in your report. See
How to group data, Page 285.
Do you want to show a subtotal at the end of each group? A count? An average? Seagate Crystal Reports allows you to specify several kinds of group values. See How to summarize grouped data, Page 289, and How to subtotal grouped data, Page 291.
Where do you want the group values to appear? With the group data? With the group data but on a page separate from other groups? Only at the bottom of the page?
Seagate Crystal Reports gives you all of these options.
Do you want to total, average, count, or determine the maximum or minimum value included in all the values in any column on your report?
102 |
Seagate Crystal Reports User’s Guide |
Flags
Flag options
Highlights
Sorting
Developing a
prototype on paper
Seagate Crystal Reports allows you to do this and place the grand total (or the grand total average, grand total count, etc.) at the bottom of the selected column.
What information, if any, do you want flagged on the report?
You may want to call attention to some data by flagging it on your report. For example, non-moving inventory items are often flagged on inventory reports so they can be given special attention. You might want to flag each item that has shown no activity during the last month, during the last three months, or during some defined period. So, if you want any information flagged, identify the information and the conditions that will trigger the flagging. See How to flag values that meet certain conditions, Page 246.
How do you want it flagged?
You may want to flag items with an asterisk or some other symbol, or you may want a word to appear as a flag. In any case, you should write out flagging instructions so they are handy.
What information do you want highlighted in some way so that it really stands out?
Seagate Crystal Reports gives you the opportunity to underline report elements, or to change the font type, size, or color used for specific report items. It allows you to put borders around items and to draw lines and boxes to break your report into sections, set off headings, etc. All of these formatting tools can be used to highlight key data on a report. If you have data that you want highlighted, you should write down highlighting instructions so they are handy too. See Formatting, Page 231.
Do you want your data sorted based on record or group values?
Seagate Crystal Reports gives you both alternatives. See Sorting, Grouping, and Totalling, Page 271.
Graphic designers generally begin their work on a magazine cover, brochure, or display advertisement with a rough pencil sketch. They often use boxes, circles, or other symbols to represent the graphic elements they intend to include in the final product, and they often use lines or scribbles to represent text. Doing the
Reporting 101 |
103 |