View Single Post
  #2   Report Post  
Posted to microsoft.public.word.tables
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default FormField in a fixedsize table cell - how to avoid invisible conte

Hi ?B?YWxp?=,

I have a table in a word(2000) formular (all cells fixed, Layout is static)
with a FormField which is filled via OleAutomation; the text that is filled
in may be larger than the cell Rect (may contain wrapped lines and LineFeeds)
which results in invisible text.
So after writing the FormField-Text I want to find out whether there is
invisible Text, truncate those invisible Lines +1 from the FormField-Text and
add a "(continued on next page)"-Line; the truncated part of the original
Text has to be written in another FormField on the second Page.

As far as I know - and I've tried numerous times to find a way - figuring out
what's visible vs. not can't be done. Closest you could get is to calculate
exactly how many lines are visible, then count the lines in the form field and
remove the extras.

Since this has to be done using macro code, I suggest you post in one of the
Word.vba newsgroups.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)