Dynamic layout
It is necessary often to print a text whose size is not known when creating a report. For example, this can be a description of goods. In this case, the following tasks will need to be solved:
- calculate the height of the object, such that it encloses the whole text;
- calculate the height of the band, such that it encloses the object with a variable amount of texts;
- move or change the height of other objects, which are contained on the band, such that, they do not disturb the general design of the report.
These tasks can be solved by using some object and band properties:
CanGrowandCanShrinkproperties allow calculating the height of the object automatically;ShiftModeproperty allows moving objects that are located under the objects that expand;GrowToBottomproperty allows resizing an object to the bottom edge of the band;AnchorandDockproperties allow controlling the size of objects depending on the size of the band.
All these properties will be looked at below.