Crystal Reports V3.0

  • View
    113

  • Download
    2

Embed Size (px)

Text of Crystal Reports V3.0

Crystal ReportsVersion 3.0

The New Standard in Quality Education

Crystal Reports OverviewPre-requisites Introduction

2

The New Standard in Quality Education

ObjectivesTo enable you to develop your own reporting solutions in Crystal Reports with confidence

3

The New Standard in Quality Education

Course Overview1 2 3 4 Data Structure Simple Report Creation Crystal Report Functions Running Reports

4

The New Standard in Quality Education

Scala Data StructureSection 1

The New Standard in Quality Education

Section Overview

What is a Database? How do we connect to the Database? Scala data file structure

6

The New Standard in Quality Education

How Do We Connect to the DB?Scala Client Win95, 98, NT Web Browser

Scala Program Layer

Scala5.x Modules

Btrieve or SQL data management layer

Data Management

Database

7

The New Standard in Quality Education

How Do We Connect to the DB?

Crystal ReportsDDFs Describe Database (Btrieve) ODBC Connects to Database table SYSOBJECTS

Read OnlyDatabase

8

The New Standard in Quality Education

Database Structure

So what is ODBC?

9

The New Standard in Quality Education

ODBC ArchitectureApplication (Access / Excel) ODBC Driver Manager (ODBC API connect methods)

Driver

Driver

Driver

}

= ODBC

SQL Server Database

Btrieve Database 6.15

Pervasive SQL Database 7.x

10

The New Standard in Quality Education

Data File Structure

Scala Table Naming Definition

MMNNCCYYModule Unique Number Financial Year Company Code

11

The New Standard in Quality Education

Data File Structure

Format of Data files

12

The New Standard in Quality Education

Data File Structure

Format of Fields

13

The New Standard in Quality Education

Data File Structure

Database to Interpret field and file names ScaDBconv.exe Scala5eu.mdb in Scala root directory Table in SQL database SCA_TAB_COLUMNS

14

The New Standard in Quality Education

Data File Structure

Scala5eu.mdb welcome screen

15

The New Standard in Quality Education

Data File Structure

16

The New Standard in Quality Education

Break

Break

17

The New Standard in Quality Education

Section Review

What is a Database? How do we connect to the Database? Scala data file structure

18

The New Standard in Quality Education

Simple Report CreationSection 3

The New Standard in Quality Education

Section Overview

Report Style SQL Data Files Scala Data Files Scala Data Fields Preview Report

20

The New Standard in Quality Education

Report CreationClick

21

The New Standard in Quality Education

Report StyleReport A - Stock Listing Step 1 - Choose report style

Click

22

The New Standard in Quality Education

Data SourceStep 2 - Select Data Source

Click

23

The New Standard in Quality Education

Data SourceStep 3 - Choose Data Source

Note the different database options!!

24

The New Standard in Quality Education

Data Source Step 3 - Choose Data SourceNeed to supply user name and password

25

The New Standard in Quality Education

Scala Data FilesStep 4 - Select Scala Data TablesSelect File(s) Click To Finish

Select Single or Multiple Tables26The New Standard in Quality Education

Scala Data FilesConfirmation of Selected Files

Click Next

27

The New Standard in Quality Education

Scala Data FieldsStep 5 - Select Fields

28

The New Standard in Quality Education

Scala Data Fields

Report 1 Stock Listing

Stock Code Description Line 1 Price Local Currency Stock Balance

SC01001 SC01002 SC01004 SC01042

29

The New Standard in Quality Education

Scala Data Fields

Select Fields Choose Add

30

The New Standard in Quality Education

Field Tab

31

The New Standard in Quality Education

Preview ReportWhen all fields are selected choose FINISH

Click

32

The New Standard in Quality Education

Report Creation

33

The New Standard in Quality Education

Report Creation

You can return to the report expert at any time by using the function Recommend that the report is saved before returning to the expert

34

The New Standard in Quality Education

Break

Break

35

The New Standard in Quality Education

Section Review

STEP 1 STEP 2 STEP 3 STEP 4 STEP 5

- Report Style - SQL Data Source - Scala Data Tables - Scala Data Fields - Preview Report

36

The New Standard in Quality Education

ExerciseExercise 1 Customer Listing

The New Standard in Quality Education

Crystal ReportsSection 3

The New Standard in Quality Education

Section Overview

Design & Preview Report Options Guidelines Refreshing Data Right Click Sections

39

The New Standard in Quality Education

Design & Preview Tabs

40

The New Standard in Quality Education

Design & Preview Tab

41

The New Standard in Quality Education

Preview Tab

42

The New Standard in Quality Education

Report Options

Options Report Options

43

The New Standard in Quality Education

Options

44

The New Standard in Quality Education

Options

45

The New Standard in Quality Education

Options

46

The New Standard in Quality Education

Guidelines

47

The New Standard in Quality Education

Refreshing Data

F5 Refreshes Data or Preview Sample

48

The New Standard in Quality Education

Refreshing Data

Preview Sample

49

The New Standard in Quality Education

Right Clicking

Useful in many areas of Crystal

Short Cut to menu optionsThe New Standard in Quality Education

50

The Magic Button

Undo / Redo

51

The New Standard in Quality Education

SectionsLeft-hand side of design tab shows report sections

Report Sections

52

The New Standard in Quality Education

Sections

Right-hand clicking in the sections area brings up menu Format sections command gives further details of sections. Section can be hidden allowing drill down function or suppressed

53

The New Standard in Quality Education

Sections

54

The New Standard in Quality Education

Section Review

Design & Preview Report Options Guidelines Refreshing Data Right Click Sections

55

The New Standard in Quality Education

Formatting

The New Standard in Quality Education

Section Overview

Adjusting Headings Increasing Field Width Adding new fields Adding Special fields Selection Expert Sorting Grouping ParametersThe New Standard in Quality Education

57

Adjusting Headings

Highlight field To rename double click or | edit | text object As with many windows products Crystal Reports supports drag and drop and copy and paste

58

The New Standard in Quality Education

Increasing Field Width

Highlight the field

Place pointer on blue boxes it changes to arrow Field width and height can be adjusted by dragging arrowThe New Standard in Quality Education

59

Adding New FieldsText Field

Drag And Click to Drop60The New Standard in Quality Education

Adding New FieldsField Explorer

61

The New Standard in Quality Education

Adding New Fields

Database fields

Select field

62

The New Standard in Quality Education

Adding Special Fields

63

The New Standard in Quality Education

Adding Special Fields

A number of the special field values are set in Summary info from file menu

64

The New Standard in Quality Education

Selection Expert

Choose Select Expert

Then choose field to select items from. Report on non-report fieldThe New Standard in Quality Education

65

Selection Expert

Default to AND can change to OR through formula66The New Standard in Quality Education

Selection Expert

Example of Selection terms

New!

67

The New Standard in Quality Education

Sorting Records

You can sort by multiple columns.

68

The New Standard in Quality Education

Sort Expert

Brings up sort box

Sort Fields Report Fields

Sort Direction

Automatic sort by column 1The New Standard in Quality Education

69

Grouping

Used to group data together Similar to sorting but adds headers and footers

70

The New Standard in Quality Education

Grouping

Used in Sub-Totaling User can define the order

71

The New Standard in Quality Education

Grouping

Define Order

Extra Options on Date field

72

The New Standard in Quality Education

Grouping

Specified Grouping User defined order

Select Groups