41
Crystal Reports Seminar August 5, 2011 STI College Caloocan Doña Emilia AVR by: Ms. Ruvina G. Teope

Crystal reports seminar

Embed Size (px)

Citation preview

Page 1: Crystal reports seminar

Crystal Reports SeminarAugust 5, 2011

STI College CaloocanDoña Emilia AVR

by: Ms. Ruvina G. Teope

Page 2: Crystal reports seminar

INTRODUCTION

Page 3: Crystal reports seminar

About Crystal Reportso Designed to work with your database

to help you analyze and interpret important information.

o Makes it easy to create simple reports.o It also has the comprehensive tools

you need to produce complex or specialized reports.

About Crystal Reports

Page 4: Crystal reports seminar

CRYSTAL REPORTS BENEFITS

Page 5: Crystal reports seminar

Create any report you can imagine

o Crystal Reports is designed to produce the report you want from virtually any data source.

o Built-in report experts guide you step by step through building reports and completing common reporting tasks.

Crystal Reports Benefits

Page 6: Crystal reports seminar

Create any report you can imagine

o Formulas, cross-tabs, subreports, and conditional formatting help make sense of data and uncover important relationships that might otherwise be hidden.

o Geographic maps and graphs communicate information visually when words and numbers are simply not enough.

Crystal Reports Benefits

Page 7: Crystal reports seminar

Extend reporting to the Webo Reports can be published in a variety

of formats including: Word Excel Email Over the Web

o Advanced Web reporting lets other members of your workgroup view and update shared reports inside their web browser.

Crystal Reports Benefits

Page 8: Crystal reports seminar

Incorporate reports into applications

o Application and web developers can save time and meet their users needs by integrating the report processing power of Crystal Reports into their database applications.

o Support for most popular development languages makes it easy to add reporting to any application.

Crystal Reports Benefits

Page 9: Crystal reports seminar

CREATING A REPORT

Page 10: Crystal reports seminar

1. Prepare the Databaseo Organize your Fileso Set up a Data Source Name (DSN)

a. Open the Run commandb. Type odbcad32

Page 11: Crystal reports seminar

c. Click Add

1. Prepare the Database

Page 12: Crystal reports seminar

d. Select the appropriate driver

e. Click Finish

1. Prepare the Database

Page 13: Crystal reports seminar

f. Type the Data Source Name

g. Click Select

1. Prepare the Database

Page 14: Crystal reports seminar

h. Locate the database

i. Click the database

j. Click OK

1. Prepare the Database

Page 15: Crystal reports seminar

2. Start the Program

Go to Start > All Programs > Crystal Reports Tools > Crystal Reports

Page 16: Crystal reports seminar

3.Select the type of crystal report document

Page 17: Crystal reports seminar

4. Select the Report Expert

Page 18: Crystal reports seminar

o There are eight Report Experts:

o Each Expert guides you through the creation of a report by providing a series of tabs. Many of the experts have tabs unique to a specific type of report.

•Standard•Form Letter•Form•Cross-Tab

•Subreport•Mail Label•Drill Down•OLAP

4. Select the Report Expert

Page 19: Crystal reports seminar

The Standard Report Experto It is the most generic of the experts.o It provides eight tabs, many of which

are common to the other Report Experts.

o It guides you through choosing a data source and linking database tables.

4. Select the Report Expert

Page 20: Crystal reports seminar

The Standard Report Experto It helps you add fields and specify the

grouping, summarization (totals), and sorting criterion you want to use.

o It leads you through chart creation and record selection.

o It has Style Tab that contains pre-defined layouts for you to apply to your report to give it more impact.

4. Select the Report Expert

Page 21: Crystal reports seminar

5. Connect to the Database

a. Click Database

Page 22: Crystal reports seminar

b. Select ODBC

5. Connect to the Database

c. Locate the DSN you created then select the table you want to use

d. Click Add

Page 23: Crystal reports seminar

5. Connect to the Database

Page 24: Crystal reports seminar

6. Select the Report Fields

a. Click the desired table and field

b. Click Add or Add All

c. Select a field

d. Modify the Column Heading

Page 25: Crystal reports seminar

7. Group the Information (optional)

a. Select a Field b. Click Add

c. Select the Sort Order

Page 26: Crystal reports seminar

8. Add Summary Information (optional)

Page 27: Crystal reports seminar

9. Include a Chart (optional)

Page 28: Crystal reports seminar

10. Select a subset of information (optional)

Page 29: Crystal reports seminar

11. Add Style to the Report (optional)

Input report title

Page 30: Crystal reports seminar

PRINTING AREA CHARACTERISTICS

Page 31: Crystal reports seminar

Report HeaderoThis section is generally used for

the report title and other information you want to appear at the beginning of the report.

Page 32: Crystal reports seminar

Page HeaderoThis section is generally used for

information that you want to appear at the top of each page. This can include such things as chapter names, the name of the document, and other similar information. This section can also be used to display field titles above the fields on a report.

Page 33: Crystal reports seminar

DetailsoThis section is used for the body

of the report, and is printed once per record.

oThe bulk of the report data generally appears in this section.

Page 34: Crystal reports seminar

Report FooteroThis section is used for

information you want to appear only once at the end of the report (such as grand totals) and for charts and cross-tabs that include data for the entire report.

Page 35: Crystal reports seminar

Page FooteroThis section usually contains the

page number and any other information you want to appear on the bottom of each page.

Page 36: Crystal reports seminar

o If a group, summary, or subtotal is added to the report, the program creates two additional sections:

Group HeaderoThis section typically holds the

group name field, and can be used to display charts or cross-tabs that include data specific to the group. It is printed once at the beginning of a group.

Page 37: Crystal reports seminar

Group FooteroThis section generally holds the

summary value, if any, and can be used to display charts or cross-tabs. It is printed once at the end of a group.

Page 38: Crystal reports seminar

INCORPORATE CRYSTAL REPORTS TO VISUAL

BASIC 6

Page 39: Crystal reports seminar

Incorporate Crystal Reports to VB6

o Start VB6o Go to Project

> Components

o Select the Crystal Report Control

o Click Apply then OK

Page 40: Crystal reports seminar

o Click and drag crystal report on the form

Page 41: Crystal reports seminar

Sample Codes to Run Crystal Report in VB

CrystalReport1.Destination = crptToWindow CrystalReport1.ReportFileName = App.Path

& "\Reports\Products.rpt" CrystalReport1.SQLQuery = “”

CrystalReport1.DiscardSavedData = True CrystalReport1.WindowState =

crptMaximized CrystalReport1.PrintReport