What are you ultimately trying to accomplish. It would be possible to get the word count from the DBMemo object however this would have to be after the memo has been generated so if you plan to move report items around based on this number it may be too late. You could also load the memo into a StringList or DBMemo object in Delphi to count the words before the report generates.
Thanks for the reply. I have a memo field which is required to be filled out by our staff. If the narrative portion of their report is filled out properly I should see a word count around 100 to 120 words for each report. I'd like to have a report that shows word count in a memo field by staff member to measure the amount of words keyed into each staff member's report.
Try using the TppMemo.OnPrint event to access the text inside that memo. There it would be possible to send that text to a word counting routine and display that value inside another component on your report such as a TppLabel.
Comments
What are you ultimately trying to accomplish. It would be possible to get
the word count from the DBMemo object however this would have to be after
the memo has been generated so if you plan to move report items around based
on this number it may be too late. You could also load the memo into a
StringList or DBMemo object in Delphi to count the words before the report
generates.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
by our staff. If the narrative portion of their report is filled out
properly I should see a word count around 100 to 120 words for each report.
I'd like to have a report that shows word count in a memo field by staff
member to measure the amount of words keyed into each staff member's report.
Try using the TppMemo.OnPrint event to access the text inside that memo.
There it would be possible to send that text to a word counting routine and
display that value inside another component on your report such as a
TppLabel.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com