Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding FormFields to a word document
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01261174
Message ID:
01261187
Views:
10
Jim

In case nobody comes up with any help, what I'd do is go into Word and record a macro of your placing form fields, from the forms toolbar, onto your document. Then stop the macro and go to tools->macros->visual basic editor and look at the VB script thus generated.

The commands will need to be translated from VB to VFP.

I'm assuming you know how to start word automation, eg:

loWord = CREATEOBJECT( [Word.Application])

Thereafter loWord.[operation] etc.

Now I'm no expert, not having automated Word, but I have automated some Excel, with a little help from the UT.
HTH

BTW, you're not related to our other Memphis law enforcement officer, John Harvey by any chance, are you? If not it's a helluva coincidence, and you've both got the moustache :-)

>Can anyone help me with adding Formfields to a Word Document using automation? I am trying to scan a table and add formfields to a document with default text from the field in my table.
>
>Thanks!
>
>Jim
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform