Word wrapping status
Hi,
I am using ReportBuilder 5 with Delphi 4. My application does the
following:
1 - Displays the lines of a dbf memo field - each line is read and written
to an individual memo component on a report
2 - There is a user defined height for the area in which the report memo
fields are to be displayed.
3 - By counting the number of lines in the memo field the memo report items
are spaced evenly within that user defined height area. I need to it this
way because there are other report components written on the same line in a
different font.
4 - I allow the user to turn on word wrapping which is applied to each
individual memo component on the report.
The problem comes in when there are several lines to display and the second
line of a wrapped component can overlie the first line of the item below it.
Is there a way to identify if a memo component has wrapped? Then I could
pad the spacing between the wrapped line and the line that prints next.
Thanks,
Mark Warren
low Profile Software
mark@lprofile.com
I am using ReportBuilder 5 with Delphi 4. My application does the
following:
1 - Displays the lines of a dbf memo field - each line is read and written
to an individual memo component on a report
2 - There is a user defined height for the area in which the report memo
fields are to be displayed.
3 - By counting the number of lines in the memo field the memo report items
are spaced evenly within that user defined height area. I need to it this
way because there are other report components written on the same line in a
different font.
4 - I allow the user to turn on word wrapping which is applied to each
individual memo component on the report.
The problem comes in when there are several lines to display and the second
line of a wrapped component can overlie the first line of the item below it.
Is there a way to identify if a memo component has wrapped? Then I could
pad the spacing between the wrapped line and the line that prints next.
Thanks,
Mark Warren
low Profile Software
mark@lprofile.com
This discussion has been closed.
Comments
I didn't do a good job of explaining the situation in the previous email -
what I really need to determine at printing time is if a TppMemo component
has stretched or not - is there any way to determine this?
Thanks,
Mark Warren
Instead of trying to check if the memo has stretched, you should be able to
set ShiftRelativeTo property to the overlapping memo and the problem should
be resolved. You can also use the ShiftWithParent property to shift a
component when the entire band shifts. If you need non-stretchable
components to shift, you will need to place them in a TppRegion and then set
the region's shift properties.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com