A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

FormField in a fixedsize table cell - how to avoid invisible conte



 
 
Thread Tools Display Modes
  #1  
Old August 9th, 2006, 12:17 PM posted to microsoft.public.word.tables
Ali
external usenet poster
 
Posts: 221
Default FormField in a fixedsize table cell - how to avoid invisible conte

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.
Any Solutions ??
  #2  
Old August 10th, 2006, 10:34 AM posted to microsoft.public.word.tables
Cindy M.
external usenet poster
 
Posts: 2,428
Default FormField in a fixedsize table cell - how to avoid invisible conte

Hi =?Utf-8?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 :-)

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.