SailPrint Print Components Basic Usage.

zhaozj2021-02-16  129

Sailprint 3.0 includes:

DBGridSource, StringGridSource, SDataSource, ListViewSource, SailReport, 5 controls.

The DBGridSource control is used to connect DBGRID.

The StringGridSource control is used to connect StringGrid.

The SDATASOURCE control is used to connect DataSource.

The ListViewSource control is used to connect to ListView.

SailReport controls can connect to the above four components and dynamically generate reports based on the above controls.

And set the relevant properties of the report. Double-click the SailReport control, display the component editor, you can edit

Report. Figure 1):

(figure 1)

As shown in the figure, the report properties include: page, column headers, multi-headed, tomorrow, title bar, list, 6.

What do these properties mean, how to set it? I think everyone should understand, I don't explain, explain here.

Everyone may not be very clear.

1, "line spacing" of the column header. The title of each column is a TSTRINGS, but also can have multiple lines, this line spacing is the column title

If it is multi-line, use this property to control the line spacing.

2, set a multi-headed head, multi-table property is actually a TSTRINGS, or you can allow multiple lines. Above

This is settled in this "| 1 | 6 | Enterprise Information | 7 | 9 | Enterprise Assets" means adding a line on the basis of the original title, and

The title of 1-6 columns is "corporate information" and the incomplete 7-9 columns title "corporate assets". The effect is as follows

(figure 2)

3, set the title bar. As shown in Figure -1, the title bar includes: title, title type, alignment, spacing, can have multiple standards

The type of question bar and the type of title can be repeated. Title types include: header, footer, report title, detail head, tail tail.

5 types. On the title bar edit box, click the right mouse button to pop up the floating menu, you can add, edit, delete.

4, set a list. The list is the field to be printed, the default is empty, and all columns of the connected control are printed. Click

"Update" can add all the fields to and edit.

5, the main settings of the list: Same as other report controls, not a monograph of a primary table. Two tables of connection needs

Developers implement themselves with SQL statements, if you set a column as the primary field, SailReport just the same

Only print once. And you can statistically use formula. Supported functions include: SUM, COUNT, AVG, and functions between functions

For example: SUM ([Field 1]) SUM ([Field 2]) But this format is not allowed: SUM ([Field 1] [Field 2]).

The specific usage can be downloaded.

转载请注明原文地址:https://www.9cbs.com/read-13531.html

New Post(0)