From the Edge: Handling Stretchables in Report Designer Section: Report Designer Chapter: Running R:BASE Your Way! Platform: R:BASE 7.x and V-8 "Turbo" for Windows Build: 7.1.79.30128 and higher The DB Memo is a special class of Report Controls called a stretchable. As the report prints, stretchable controls increase or decrease in height based on their content. This differs from static controls, which always print with the same height. When a band contains both static and stretchable controls, it is difficult to get the printed pages of a report to look exactly right because stretchable controls print at a height that is different from the one given in the report layout. The following properties can help you keep your reports looking good when Stretchables are used.

Stretch
Applies to Stretchables only, and indicates whether or not
the stretchable will adjust to its height based on content.
A stretchable control with Stretch set to False (un-checked)
behaves just like a static control, printing at the height
defined in the report layout and cropping any content which
extends beyond that height. When set to True (checked),
Stretch causes the component to adjust its height based on
the content.

StretchWithParent
Applies only to shapes and lines and can be used to create
border or background for a stretchable control. The 'Parent'
in StretchWithParent refers to the band, since the band
contains the controls.

ShiftWithParent
Used by static controls that need to print after a
stretchable has completed printing. For example. Let's say
you need a description of a car, followed by the price. The
price should appear below the description. In order to do
this, you would place a DB Text control below the DB Memo,
setting the ShiftWithParent property to True (checked). When
the report prints, the DB Memo would print to completion and
then the price would print beneath it.

OverFlow
Whenever a stretchable is printing on additional pages, it
is said to be overflowing. When a condition of OverFlow exist,
other controls in the band may print again in order to clarify
the content of the stretchable.

ReprintOnOverFlow
This property applies to static controls only. Stretchable
controls often have a set of static controls that put the
content of the stretchable into context. For example, a DB
Memo describing the features of a car might be preceded by
the name of the model. If this DB Memo happened to overflow
onto additional pages, it might be helpful to print the name
of the model again so that the reader is reminded of the
model to which the description pertains. In order to do this,
you would set ReprintOnOverFlow to True (checked) for the
model name.

Other report controls with Stretch property:

Standard Controls:
. Memo
. Rich Text
. Image
Database Controls:
. DB Rich Text
. DB Image
Variable Controls:
. Variable Memo
. Variable Rich Text
. Variable Image
Advanced Controls:
. Region
. Cross Tab
. Sub-Reports (R:BASE 7.5 and V-8 "Turbo" only)

A PDF version of this document is also available at:
From The Edge: http://www.razzak.com/fte
(Powered by R:WEB Suite)

Very Best R:egards,

Razzak.

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================




Reply via email to