Beruflich Dokumente
Kultur Dokumente
Table of Contents
VERSION 2.5
Borland
ReportSmith
for PC Databases
Borland International, Inc., 100 Borland Way
P.O. Box 660001, Scotts Valley, CA 95067-0001
Redistributable files
You can redistribute the following file in accordance with the terms of Borlands No Nonsense License Statement:
RS_RUNTIME.EXE
Borland may have patents and/or pending patent applications covering subject matter in this document. The
furnishing of this document does not give you any license to these patents.
COPYRIGHT 1992, 1994 Borland International. All rights reserved. All Borland product names are trademarks or
registered trademarks of Borland International, Inc. Other brand and product names are trademarks or registered
trademarks of their respective holders.
Printed in the U.S.A.
1E0R1094
9495969798-9 8 7 6 5 4 3 2 1
I1
MASTER CD
DOCUMENT
LIST
Contents
Introduction
Chapter 4
Manipulating data
Chapter 1
Chapter 2
. .
.
.
.
.
. .
. .
. .
. .
.
.
.
.
. . . . . . . . . . . . . .7
. . . . . . . . . . . . . .7
. . . . . . . . . . . . . .8
. . . . . . . . . . . . . .8
. . . . . . . . . . . . . .8
. . . . . . . . . . . . . .9
. . . . . . . . . . . . . . .9
. . . . . . . . . . . . . . 10
. . . . . . . . . . . . . 11
.
.
.
.
Chapter 3
27
Parts of a report . . . . . . . . . . . . . . .
The toolbar . . . . . . . . . . . . . . . . .
The ribbon . . . . . . . . . . . . . . . . . .
Sorting . . . . . . . . . . . . . . . . . . . .
Grouping. . . . . . . . . . . . . . . . . . .
Report grouping . . . . . . . . . . . . . .
Database grouping. . . . . . . . . . . . .
Inserting a header or footer . . . . . . . .
Specifying selection criteria . . . . . . . .
Choosing records . . . . . . . . . . . . .
Choosing fields . . . . . . . . . . . . . .
Creating a derived field . . . . . . . . . . .
SQL-derived fields . . . . . . . . . . . .
Macro-derived fields . . . . . . . . . . .
Creating a summary field . . . . . . . . . .
Creating a report variable . . . . . . . . . .
Data types and entry types . . . . . . . .
Sample report variables . . . . . . . . . . .
Sample 1: Entering or choosing a value .
Sample 2: Choosing from a list . . . . . .
Sample 3: Choosing table-driven values .
Creating a master /detail report . . . . . . .
. . . . 27
. . . . 28
. . . . 28
. . . . 28
. . . . 29
. . . . . 29
. . . . . 31
. . . . . 33
. . . . 35
. . . . . 35
. . . . . 40
. . . . 43
. . . . . 44
. . . . . 45
. . . . 47
. . . . 48
. . . . . 49
. . . . 51
. . . . . 51
. . . . . 53
. . . . . 54
. . . . 54
13
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 56
. 56
. 57
. 57
Saving a report . . . . . . . . . . . . . . . . . . . 58
Creating a temporary table . . . . . . . . . . . . . 58
Chapter 5
Formatting
Selecting and moving objects . . .
Columns . . . . . . . . . . . . . .
Fields. . . . . . . . . . . . . . . .
Rows . . . . . . . . . . . . . . . .
Headers and footers . . . . . . . .
Body . . . . . . . . . . . . . . . .
Text . . . . . . . . . . . . . . . .
Resizing objects . . . . . . . . . . .
Using Page Setup settings . . . . .
Setting margins . . . . . . . . . .
Setting paper size and orientation.
61
.
.
.
.
.
.
.
.
.
.
.
. .
.
.
.
.
.
.
. .
. .
. .
. .
.
.
.
.
.
.
. . . . . 61
. . . . . 61
. . . . . 62
. . . . . 63
. . . . . 64
. . . . . 64
. . . . . 64
. . . . . 64
. . . . . 65
. . . . . . 65
. . . . . . 66
.
.
.
.
.
.
Single-column . . . . . . . . .
Single-row . . . . . . . . . . .
Single-row and single-column
Double-column . . . . . . . .
Double-row . . . . . . . . . .
The Crosstab menu . . . . . .
The Crosstab toolbox . . . . .
Setting up labels . . . . . . . . . . . . . . . . . . . 67
Adding a report background . . . . . . . . . . . . 68
Using the grid . . . . . . . . . . . . . . . . . . . . 69
Formatting techniques . . . . . . . . . . . . . . . . 70
Characters . . . . . . . . . . . . . . . . . . . . . . 70
Fonts and point sizes . . . . . . . . . . . . . . . .70
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 71
. 72
. 73
. 74
. 75
. 76
Drawing . . . . . . . . . . . . . . . . . . . . . . . 95
The Drawing Toolbox. . . . . . . . . . . . . . . . 95
Using report styles . . . . . . . . . . . . . . . . . . 97
Applying a style . . . . . . . . . . . . . . . . . . . 97
Assigning a default style . . . . . . . . . . . . . . 98
Creating a style . . . . . . . . . . . . . . . . . . . 98
Modifying a style . . . . . . . . . . . . . . . . . . 99
Deleting a style . . . . . . . . . . . . . . . . . . . 99
Using the Style Extractor . . . . . . . . . . . . . 100
Displaying data fields as pictures . . . . . . . . . 101
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
109
109
109
110
110
111
111
. . . . .112
. . . . . 112
. . . . . 113
. . . . . 113
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . . .114
. . . .115
. . . .115
. . . . 117
. . . . 118
. . . . 119
. . . . 120
. . . .120
. . . . 121
. . . . 122
. . . . 123
. . . .123
. . . . 123
. . . . 124
. . . . 124
. . . . 126
. . . . 126
. . . . 127
. . . .129
. . . . 130
. . . . 130
. . . . 131
. . . . 132
.
.
.
.
. . . .135
. . . . 135
. . . . 136
. . . . 137
Chapter 8
Macros
Introduction to macros . . . . .
What is ReportBasic? . . . . .
Uses for macros . . . . . . . .
Scoping macros . . . . . . . .
135
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Chapter 6
103
Chapter 7
Crosstabs
.
.
.
.
.
.
.
Creating a crosstab . . . . . . . . . . . .
Method 1: From scratch . . . . . . . . .
Method 2: Based on a columnar report .
Method 3: Selecting three columns . . .
Placing a crosstab . . . . . . . . . . . . .
Selecting crosstab items. . . . . . . . . .
Modifying a crosstab . . . . . . . . . . .
Rows . . . . . . . . . . . . . . . . . . .
Values . . . . . . . . . . . . . . . . . .
Columns . . . . . . . . . . . . . . . . .
Crosstab report options . . . . . . . . .
Resizing rows and columns. . . . . . . .
Individual rows . . . . . . . . . . . . .
Individual columns . . . . . . . . . . .
Uniform row and column sizing . . . .
Manipulating data . . . . . . . . . . . . .
Grouping . . . . . . . . . . . . . . . . .
Deleting rows, columns or values. . . .
Sorting . . . . . . . . . . . . . . . . . .
Inverting rows and columns. . . . . . .
Calculating fields . . . . . . . . . . . .
Creating a field alias . . . . . . . . . . .
Formatting techniques . . . . . . . . . .
Working with crosstab styles . . . . . .
Applying a style . . . . . . . . . . . . .
Creating a style . . . . . . . . . . . . .
Extracting a style . . . . . . . . . . . .
Graphs
.
.
.
.
.
.
.
107
. .
.
.
.
.
. .
. .
. .
. .
. .
. .
.
.
.
.
. . . .138
. . . 138
. . . 139
. . . 140
. . . 141
. . . .142
. . . . 142
. . . . 143
. . . . 143
. . . . 144
. . . . 144
.
.
.
.
Appendix A
Sample macros. . . . . . . . . . . . . . . . . . .
Example 1: Conditional formatting. . . . . . . .
Example 2: Setting report variables . . . . . . .
Example 3: Loading a series of reports. . . . . .
Example 4: Connecting to a database . . . . . .
Example 5: Displaying a greeting . . . . . . . .
Example 6: Creating a counter field . . . . . . .
Example 7: Determining a percent of total. . . .
Example 8: Creating a summary . . . . . . . . .
Example 9: Sample dialog box . . . . . . . . . .
Example 10: Refreshing a temporary table. . . .
150
151
152
153
153
154
154
154
156
156
157
Chapter 9
Printing a report
. . . . .171
. . . . 172
. . . . 172
. . . . 173
. . . . 173
. . . . .173
. . . . .173
. . . . .174
. . . . .174
. . . . .175
. . . . . 175
. . . . . 177
. . . . . 177
. . . . . 178
.
.
.
.
Macro reference
Macro object reference . . . . . . . . .
Basic conventions . . . . . . . . . . .
Variable data types . . . . . . . . . .
Application events . . . . . . . . . . .
Creation Events . . . . . . . . . . . .
Report Events . . . . . . . . . . . . .
Data field events . . . . . . . . . . . .
Command reference. . . . . . . . . . .
Data types and type conversion . . . .
ReportBasic command summary . . .
DataSet Control properties summary .
Basic commands summary
Chapter 10
163
Setting options . . . . . . . . . . . . . . . . . . .
Controlling data access . . . . . . . . . . . . . .
Choosing start-up options. . . . . . . . . . . . .
Selecting measurements. . . . . . . . . . . . . .
Listing items alphabetically. . . . . . . . . . . .
Choosing a font list . . . . . . . . . . . . . . . .
Storing connections . . . . . . . . . . . . . . . .
Pointing to graphics files . . . . . . . . . . . . .
Customizing the menu and toolbar . . . . . . . .
Disabling File|New . . . . . . . . . . . . . . . .
. .
.
.
.
.
. .
. .
. .
. .
. .
. .
. .
. .
. .
.
.
.
.
Appendix B
159
Customizing ReportSmith
171
163
164
165
165
166
166
166
166
167
167
Index
iii
181
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . . .181
. . . . 181
. . . . 182
. . . . 185
. . . . 188
. . . . 188
. . . . 190
. . . .191
. . . . 191
. . . . 192
. . . . 240
244
313
Introduction
The ReportSmith Users Guide explains how to create reports with ReportSmith. It begins with
basic tasks such as creating a basic report, and moves on to advanced topics such as working with
macros.
Introduction
Chapter 5, Formatting explains how to select and move parts of a report, set
paper size and orientation, to format a report by adding borders, using drawing tools,
formatting characters, using the Style Extractor and report styles, aligning items, and
displaying graphics filenames as pictures.
Chapter 6, Graphs describes how to convert a report to a graph.
Chapter 7, Crosstabs shows you types of crosstabs you can create, introduces
three methods for creating a crosstab, and shows you how to modify and format a
crosstab.
Chapter 8, Macros introduces you to macros and ReportBasic, shows you how to
create and use a simple macro, gives examples of sample macros.
Chapter 9, Printing a report shows you how to set up your printer and print an
entire report or a range of pages.
Chapter 10, Customizing ReportSmith shows you how you can customize
ReportSmiths options, the menu and toolbar, and how to run a report from an icon.
Appendix A, Using ReportSmith with other applications discusses Dynamic
Data Exchange (DDE), how to embed an OLE 2.0 object into a report, and shows you
how to call ReportSmith from another application, or call an application from
ReportSmith.
Appendix B, Macro reference provides a command reference for ReportSmiths
macro facility.
Users Guide