memo in region
Hi, All!
I need to create by code (nothing in design tool) a report that has in the
header band some labels, a memo and the titles of the colums of data. The
problem is that the memo could be of any size. The solution, I think, is to
put the memo in a region (1) and the titles in another region (2), so that
the region1 grow with the memo and made the region2 to go down to open space
and to not mess all this things.
OK. But I just try and try in many ways to do this but did not the right
thing to create that fields, regions and other components in run-time.
The region just don't stretch when the memo is big. It seams that I can't
inform that the memo is inside that region. Can you understand? (I know my
english is very bad.)
Can anyone help me please?
Thaks,
Anselmo B. D.
I need to create by code (nothing in design tool) a report that has in the
header band some labels, a memo and the titles of the colums of data. The
problem is that the memo could be of any size. The solution, I think, is to
put the memo in a region (1) and the titles in another region (2), so that
the region1 grow with the memo and made the region2 to go down to open space
and to not mess all this things.
OK. But I just try and try in many ways to do this but did not the right
thing to create that fields, regions and other components in run-time.
The region just don't stretch when the memo is big. It seams that I can't
inform that the memo is inside that region. Can you understand? (I know my
english is very bad.)
Can anyone help me please?
Thaks,
Anselmo B. D.
This discussion has been closed.
Comments
ppMemo1.Region := ppRegion1;
First, create the report at design time (this is your prototype) to set the
properties necessary to get this working, such as ShiftRelativeTo on the
stretchable regions. Then port this over to a dynamic report.
In case you haven't seen an example, here are some that create the report in
code:
http://www.digital-metaphors.com/tips/DynamicReportCreation.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com