Académique Documents
Professionnel Documents
Culture Documents
Table
6. Table
This chapter describes various functions included in Table Menu. For the concept or
components of Table, see 3.1 Table components of Chapter 4. Report Designer
Overview.
81
In Table Form report, in case of setting various properties of a table drawn in a body page,
you can select Table > Set Table Properties to set properties of a table.
If you select Table > Set Table Properties, Set Table Properties dialog box will appear as
shown below. And, after selecting a table whose properties you want to set, set desired
values of properties in Set Table Properties dialog box and then click OK button.
Number of Repetitions
A set is made for the number of repetitions for repetition section in a table object. For
example, when the total number of records is 20, if the number of repetitions is set to 5, a
table will be printed 5 times a page and a total of 4 pages will be printed.
If the number of repetitions is set as Default, repetition sections as many as possible will be
printed in a page and then a move will be made to next page.
Do not Repeat
As for a table, a row is not added and data is overwritten in the same row. It is used when
an item is shown in the same location even if there are a number of records. Therefore,
finally, the record value just before Page Break is applied.
82
6. Table
As for every table with two or more rows, it has the repetition section absolutely. If you
should draw a repeated table and a non repeated table as well, two solutions can be given
as shown below.
- Creating a table only with header section.
, If you assign the desired number of rows and columns by using a function of splitting a
cell(See Chapter 6.6.2 Divide Cells) after creating a table with 1 row and 1 column and
selecting the cell of a table, you can create a non repeated table.
- Use Do not Repeat in Set Table Properties dialog box.
Once create a table with desired rows and column even if a repetition section is included in
it. Then, and if you check Do not Repeat in Set Table Properties dialog box, you can create
a not repeated table.
Draw Blanks
If Draw Blanks option is checked and Default is selected in Draw Blanks combo box, even
if printing a record ends in the middle of a page, the Blank will be drawn on the rest of a page.
In case Draw blanks until the number of repetitions is n is selected, even if the number
of repetition rows is less n (defined number), blank rows will be drawn to create as many
repetition rows as defined. For example, if 2 repetition rows are created in the Table in which
Draw blanks until the number of repetitions is 5 is set, 3 blank rows will be drawn.
Direction of Blanks
This is an option used only for CrossTab document, and sets the direction for applying Draw
Blanks option. If you select one of three options, Default, Horizontal and Vertical and set it
as default, blanks can be drawn toward horizontal and vertical directions.
83
In case you assign Show Table As Multi Level, a virtual table to notify it will be displayed in
the right side of a table. As it is impossible to edit a virtual table, the virtual table is affected
by the left table, which is assigned as Multi level Table. But, if the page is not enough for
multi levels as for assigning Show Table As Multi Level, a virtual table will not be displayed.
Case of No Data
For example, in case of no data to be printed in a repetition table, if you check Combine
Repetitions for the area to set properties applied in a table, you can combine repetitious
columns into one column. If you check Show Summary, it is confirmed whether summary
section appears on the table or not. In case you check Combine Repetitions in String to
be shown, you can combine repetitious columns into one column and set directly a
notification message such as Query data does not exist. to be printed in the column.
However, if you output any data with the corresponding values from January to December
into the first row and set Give Priority to Header to CrossTab table, an output will be made
as shown below.
84
6. Table
6.5. Line
6.5.1. Draw Vertical/Horizontal Line
Draw Vertical/Horizontal Line is to split cells by lines. This function allows you to split
several cells at the same time.
Select Table > Line > Draw Vertical/Horizontal Line, or click Table Toolbar > Draw
Vertical/Horizontal Line ( ). If you place the mouse at the vertical or horizontal line of a
table, the cursor ( ) appears. If you drag, while pushing the left button of your mouse,
85
dotted line is shown as shown below. If you release the mouse button, the line splits cells.
),
After selecting type of diagonal line, click OK. If you move a mouse on the edge of a cell, a
as the below first picture.
mouse is changed into
At this moment, drag while pushing the mouse left button, a dotted line with
appears as the below second picture.
cursor
Once you drag the pointer to the cross edge of the cell,
appears. If you release the
button, a diagonal line will be drawn as the below third picture.
86
6. Table
).
).
If you want to select numbers of lines at the same time, press <Shift+Left Click> or
drag the line. When you cancel line selection mode, click the right button of your mouse.
87
).
If you move a mouse close to a junction of a horizontal and vertical line, a mouse changes
into ( ). At this moment, if you click the left button, the vertical line is separated as shown
below, in the right Table.
You can see that the vertical line is divided into two separate lines.
88
6. Table
).
If you move a mouse close to a junction of a horizontal and vertical line, a mouse changes
into ( ). In this case, if you click the left button, the horizontal line is separated as shown
below.
You can see that a horizontal line is divided into two separate lines.
89
Join Vertical Lines joins two split lines with moving the left line to the right line.
).
If you want to change a double line to other types of lines, change the Line Properties.
As for Repetition Section Line Properties, because the properties is changed for
every column or row, a change cannot be made by Select Part of Line.
90
6. Table
After selecting a line (or click text) from Setting, if you change Line Properties, the shape to
be printed will be displayed in Preview window.
If you select Repetition Section and select 0 for line thickness, you can see the following
picture on your screen.
Setting
Report Designer draws a table by a row. Therefore, a horizontal line within a table with a
repetition section is an upper line of a lower line and is a lower line of an upper line at the
same time.
91
In other words, within a table, one line has two properties. Setting allows you to select
properties to be changed between them and shows you the set contents.
Line Thickness
Select the desired line width.
Line Style
You can select Dash Line or Double Line. However, if you apply the desired Line Style,
Line Thickness is fixed to be 1.0.
Line Color
You can select the desired Line Color.
Preview
You can view a line properties assigned.
92
6. Table
For example, when you apply Line property mode (above) to a line between the header
and the repetition section, the line shows the headers properties. If you do not apply it, the
line shows the repetition sections properties.
After Line property mode (above) is applied to a line, if you change the line into double
line and release Line property mode (above) from the line and then change line width to
0, the line under the header will be double line , lines of the repetition section will be shown
in Viewer.
That is to say, between the header and the repetition section, the header has higher priority
then the repetition section. So, the line follows the headers properties. Between repetition
sections, the priority is same. Therefore, the line follows the lower repetitions properties. The
lower line of the upper repetition section is a straight line, but if one row as part of the
repetition section is added to the repetition section, the line properties(0) of the upper line of
the lower repetition section is applied.
If you want to apply the line properties easily, it is better to use Repetition
Section/Summary Section Line Properties dialog box by selecting Table > Line >
Repetition Section/Summary Section Line Properties or clicking Table Toolbar>
Repetition Section/Summary Section Line Properties ( ).
Line Property Mode (above) makes it easy to apply another properties to a line, which has
two Line Properties.
See Chapter 8.2 TextFrame Properties for the details of memo objects.
After selecting the table that contains cells applied as Memo Object, if you select
Table>Line>Memo Line Properties, then Memo Line Properties dialog box appears as
shown below.
93
Line Thickness
Select the desired Line Width.
Line Style
You can select Dash Line or Double Line. However if you select one of them, the line width
is fixed to 1.0.
Line Color
Select Line Color.
6.6. Cell
6.6.1. Merge Cells
Merging Cells means to combine adjacent cells into one cell.
To the Merge Cells, after defining a block for the cells to be merged at first, select Table >
Column > Merge Cells or click Table Toolbar > Merge Cells(
).
As shown below, after merging the blocked cells, a table will be changed into a table on the
right.
In case of cells to be split vertically/horizontally, since the blocked cells do not retain a
square-like shape, the cells cannot be merged. However, as in the case of a table on the
right, the blocked cells retain a square-like shape and therefore, can be merged.
94
6. Table
Divide Cells has a strong point that divides any a cell into several cells with the same size
and can divide any cells. For reference, in case of splitting a cell into many small cells, the
size of a table may be extended.
Draw Vertical/Horizontal Line allows you to divide cells. Therefore, when there are
few cells, Draw Vertical/Horizontal Line will be more convenient. When you divide a cell
into many cells, it is better to resize the cell. (Refer to Ch. 6.5.1. Draw Vertical/Horizontal
Line for the details of Draw Vertical/Horizontal Line)
95
Number of lines
Input the desired number of Internal Boundary Line.
Line shape
Select Horizontal Line or Vertical Line and then select the line type of Internal Boundary
Line.
96
6. Table
6.7. Matrix
6.7.1. Change Direction of Matrix
This function allows converting rows into columns, and vice versa. After selecting a target
Table, select Table > Matrix > Change Direction of Matrix or click Table Toolbar >
Change Direction of Matrix ( ).
This function is mainly used, in a table document. to create a table whose columns repeat
(extending to the right).
97
Display on Page Break allows showing the value once at the start of the next page..
Set Matrix Group can be applied to each row in case the repetition section is
displayed.
98
6. Table
See Chapter 6.3 Table Division for dividing a table object into Header Section and
Repetition Section.
).
After adding Summary section, you can see another blue line as shown below.
99
When you insert Columns, select Table > Insert > Insert Left of the Column/Insert Right
of the Column or click Table Toolbar> Insert Left of the Column ( )/Insert Right of the
Column( ).
In case you do not delete an outline to look like a rectangle, the segment of the outline
is misaligned by Splitting a Vertical/Horizontal Line.
Deleting Rows
After placing a mouse at the row to be delete or defining a block for it, select Table > Delete
> Delete Rows or click Table Toolbar > Delete Rows( )
Deleting Columns
After placing a mouse at the column to be delete or defining a block for it, select Table >
Delete > Delete Columns or click Table Toolbar > Delete Columns( )
100
6. Table
6.9. Convert
Generally, the table is divided into a rectangle and a rounded table. Before creating a table,
you can select one of both. After creating a table, you may change it by selecting Table >
Convert > To General Table or To Rounded Table.
To General Table
After selecting a rounded table, select Table > Convert > To General table then the table
changes into a general table.
To Rounded Table
After selecting a general table, select Table > Convert > To Rounded table then the table
changes into a rounded table.
101
After setting Header/Repetition, a table shows a properties line like as it is created in Table
Form Document.
As above, you can assign object variables to the table set the repetition section. Then you
can add data to the repetition section by using AddDataBody of script.
When other tables or objects are at the button of the table set repetition section, as the
repetition section increases, the repetition section meets other objects. At this time, In case
of a Table Form Document, Page Break function operates. However in case of a Fixed
Form Document, other object moves below automatically not to meet the repetition section.
When you set header section to a table, if the table is too long to fit a page, the table is
divided on the page margin. However, the divided table on the next page has the same
header section as you set.
102