Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Textbox
Message
From
10/05/2006 05:07:08
 
 
To
08/05/2006 12:29:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01117773
Message ID:
01120630
Views:
21
>>>>Hi All.
>>>>
>>>>I have a Word document. It has several pages of text. On one page there is a textbox with text in it. Thanks to previous post replies I have managed to access the text and images on the page itself. But how to now copy the text contained in this textbox that is on the page? I cannot see anything obvious under intellisense.
>>>>
>>>
>>>I think you need to look at the Fields collection. If you have FPA, check the April '04 Answers column. I talked about this topic.
>>>
>>>Tamar
>>
>>Hi Tamar
>>
>>Thanks for the info. I have looked at the article as I am a subscriber but oDoc.FormFields.Count returns zero even though there are 3 textboxes in the word document. Where else can I look? Any suggestions welcome.
>>
>
>There is some connection with whether the document is protected or not. Make sure to turn protection off before you try to work with this stuff.
>
>Tamar

Hi Tamar. I am having no luck :) The document is not protected and UnProtect says it is not protected. Perhaps I am not explaining the problem properly. I create a Word doc and enter some text on a page. Then I can click on the < Insert > menu and select the < Text Box > menu option. I can now draw a rectangluar area on the form within which I can type some more text. Now using automation I can (thanks to the UT) read the text that is around this text box. But I cannot for the life of me figure out how to read the text within this text box.

Any ideas, ...anyone, ...someone, ...anyone out there ... :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform