Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Fields?
Message
From
27/05/2004 07:51:59
 
 
To
26/05/2004 06:39:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00907048
Message ID:
00907662
Views:
12
Hi Cetin,
As usual you come through! Thanks
Peter

>>I have to fill in the fields in a word doc. The document is protected with theexception of the fields.
>>I use the bookmark and do the following (Which does not work. It tries to write AFTER the field)
>>
>>
>>oBKM=thisform.oWord.ActiveDocument.Goto(-1,,,"Text1")
>>oBkm.InsertAfter(myCursor2.Inp)
>>
>>
>>it fails because the space AFTER the field is protected.
>>
>>how can I fill in the fields?
>>
>>Thanks
>>
>>Peter
>
>Peter,
>Directly use the formfields collection :
>
>oWord.Activedocument.FormFields('Text1').Result = 'Peter'
>oWord.Activedocument.FormFields('Text2').Result = 'Cortiel'
>
>Cetin
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform