Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Fields?
Message
From
26/05/2004 06:39:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/05/2004 13:56:26
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00907048
Message ID:
00907243
Views:
12
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform