DBMemo stretch
If you have a dbmemo with the stretch property on, then a region below
the memo that shifts relative to the memo, if there are no lines in the
memo, the region appears directly below the label that is above the
dbmemo. Is there a way to set a minimum height on the dbmemo so that if
the memo is blank, set it to this height, otherwise if there are lines
in the memo, stretch the memo like it normally does?
the memo that shifts relative to the memo, if there are no lines in the
memo, the region appears directly below the label that is above the
dbmemo. Is there a way to set a minimum height on the dbmemo so that if
the memo is blank, set it to this height, otherwise if there are lines
in the memo, stretch the memo like it normally does?
This discussion has been closed.
Comments
Try the following...
Place the region where you would like it to print if the memo is not present
in the band. Then, inside the Band.BeforePrint, check to see if the DBMemo
field contains any information. If not, set the ShiftRelativeTo property of
the Region to nil, otherwise, set it to the DBMemo.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com