(Newbie) I want to conditionally print a line memo field in the data band. If the there is nothing in the memo field, I do not want a blank line to show up on the report. How do I accomplish this? thanks.
Yes, but what if the memo field in underneath another field. This would make the data band 2 lines high. If I do not print the the memo field, the detail band is still 2 lines high..
Be sure you have the DetailBand.PrintHeight set to phDynamic. This will make the band snap to the correct size depending on the visible components present.
On the TppMemo component, you will see a property called "ShiftRelativeTo". Just assign this to the component prior to the memo component. This should solve your problem.
If not, you can create new grouping just for the memo. This grouping would have the same data grouping as it did before. Now, the TppMemo component is all by itself. With this approach, you can use the Nico's suggestion.
Comments
make the data band 2 lines high. If I do not print the the memo field, the
detail band is still 2 lines high..
Inside the DetailBand.BeforePrint event, you could check if the memo field
has a value and toggle the visibility of the DBMemo component accordingly.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Be sure you have the DetailBand.PrintHeight set to phDynamic. This will
make the band snap to the correct size depending on the visible components
present.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
On the TppMemo component, you will see a property called
"ShiftRelativeTo". Just assign this to the component prior to the memo
component. This should solve your problem.
If not, you can create new grouping just for the memo. This grouping
would have the same data grouping as it did before. Now, the TppMemo
component is all by itself. With this approach, you can use the Nico's
suggestion.
Hope this helps. 8)
SeHun