DBText and DBMemo
Hi,
In the detail band, I am using usually DBText with both properties
'SuppressRepeatedValues' and 'ReprintOnSubsequent', but I cannot stretch
this one if the value is too long.
To solve this problem, I would like to use DBMemo which has got 'Stretch'
and 'SuppressRepatedValues' properties, but not 'ReprintOnSubsequent'. I
tried to do this property with some code in 'AfterPrint' or 'BeforePrint'
events of the Detail Band but without results.
Anybody has got an idea ?
Cheers
Laurent
In the detail band, I am using usually DBText with both properties
'SuppressRepeatedValues' and 'ReprintOnSubsequent', but I cannot stretch
this one if the value is too long.
To solve this problem, I would like to use DBMemo which has got 'Stretch'
and 'SuppressRepatedValues' properties, but not 'ReprintOnSubsequent'. I
tried to do this property with some code in 'AfterPrint' or 'BeforePrint'
events of the Detail Band but without results.
Anybody has got an idea ?
Cheers
Laurent
This discussion has been closed.
Comments
One option might be to use a group that breaks for each detail line and is
configured to reprint its header on subsequent pages. That would require
that you place the memo in the group header band, so it might not suit your
needs.
You can check out the source code to TppCustomText in ppCtrls.pas to see the
how the ReprtingOnSubsequent is implemented. You might be able to descend
from TppMemo or TppDBMemo and add this capability.
Keep in mind that a Memo is much more complicated because it can stretch and
break across pages and a memo can participate in ShiftRelativeTo
relationships.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I will try the different ways.
Cheers