Component-Delphi - Reportbuilder Developer Guide.pdf

(3136 KB) Pobierz
Dev. Guide.book
ReportBuilder
Developer's Guide
Second Edition
 
287826321.001.png
Copyright © 2000 by Digital Metaphors Corporation
i
C ONTENTS
I NTRODUCTION
The Basics
Report Creation .................................................................................................3
Select................................................................................................................. 3
Design................................................................................................................ 4
Process.............................................................................................................. 4
Generation .........................................................................................................5
A Quick Test Spin
Overview ............................................................................................................6
Create a New Application ..................................................................................6
Create a Table, DataSource, and Data Pipeline Component ............................6
Create a Report and Connect it to the Data ...................................................... 6
Invoke the Report Designer ................................................................................6
Place a Label Component in the Header Band ................................................ 6
Place a DBText Component in the Detail Band................................................. 7
Preview the Report at Design-Time ...................................................................7
Preview the Report at Run-Time .......................................................................7
The Best Way to Learn ReportBuilder?
Start simple, then go to the next easy level. ......................................................9
Use the online help. ...........................................................................................9
Use this manual. .................................................................................................9
Run the examples; Study the examples; Know the examples. ..........................9
Elements of the User Interface
The Report Designer .......................................................................................10
Working with the Report Designer
Overview ..........................................................................................................12
Some tips to help you get the most out of ReportBuilder ................................12
The Report Tree ..............................................................................................14
The Data Tree.................................................................................................. 14
Reporting Basics
Lookup Tables/Queries ....................................................................................16
Filtering Data ...................................................................................................16
Performing Calculations ...................................................................................16
Display Formats ...............................................................................................17
Dynamic Bands................................................................................................ 17
Stretching Memos and Shapes ........................................................................17
Controlling Component Visibility ......................................................................17
 
ii
R EPORT B UILDER F UNDAMENTALS
M AIN
Introduction
Overview ..........................................................................................................23
Data Access .....................................................................................................23
Data Process ...................................................................................................23
Report Layout ..................................................................................................23
Report Output ..................................................................................................23
The Delphi Components
DBPipeline .......................................................................................................25
BDEPipeline .....................................................................................................25
TextPipeline .....................................................................................................25
JITPipeline .......................................................................................................25
Report ..............................................................................................................25
Viewer ..............................................................................................................25
Archive Reader ................................................................................................25
Report Components
Overview.......................................................................................................... 26
Label ................................................................................................................26
Memo ...............................................................................................................26
RichText ...........................................................................................................26
SystemVariable ................................................................................................27
Variable............................................................................................................ 27
Image ...............................................................................................................27
Shape ..............................................................................................................27
TeeChart ..........................................................................................................27
BarCode ...........................................................................................................27
CheckBox ........................................................................................................27
DBText............................................................................................................. 27
DBMemo ..........................................................................................................27
DBRichText ......................................................................................................28
DBCalc .............................................................................................................28
DBImage ..........................................................................................................28
DBBarCode.......................................................................................................28
DBTeeChart .....................................................................................................28
DBCheckBox ...................................................................................................28
Region .............................................................................................................28
SubReport ........................................................................................................28
CrossTab ......................................................................................................... 28
 
iii
Smart Layouts
Overview ..........................................................................................................29
StretchWithParent ............................................................................................29
ShiftWithParent ................................................................................................29
ShiftRelativeTo ................................................................................................ 29
StopPosition (for subreports) ...........................................................................29
BottomOffset.................................................................................................... 29
OverFlowOffset ................................................................................................29
ReprintOnOverFlow .........................................................................................29
One Memo in the Detail Band ..........................................................................30
One Memo with a Shape Background .............................................................30
One Memo with Label Beneath ....................................................................... 31
Two Stacked Memos in the Detail Band ..........................................................31
Two Side-by-Side Memos with Labels Below.................................................. 32
Child SubReports in Fixed Positions ...............................................................32
One Memo with Two Side-by-Side Memos Below........................................... 33
SubReports
Overview ..........................................................................................................34
Single Dataset ................................................................................................. 34
Master Dataset with Single Detail Dataset ......................................................35
Master Dataset with Nested Detail Datasets ...................................................35
Master Dataset with Multiple Independent Datasets .......................................36
Independent Datasets...................................................................................... 36
Form Emulation
Overview.......................................................................................................... 37
Single Page Forms .......................................................................................... 37
Multi-Page Forms ............................................................................................ 39
 
Zgłoś jeśli naruszono regulamin