Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Individualising Word forms

Status
Not open for further replies.

johnhodgson

Programmer
Nov 23, 2000
27
GB
Can any suggest how to insert content into a Word form fields?

We want to send users a form where they can select one of three possible paragraphs by using Word form tick boxes, but we want them to be able to edit the paragraph if necessary. The content of the paragraphs will vary each time the form is sent. We need to put the content into textboxes in the form.
 
johnhodgson

Is this a Visual FoxPro question?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike

Yes, I was so far absorbeed with the problem trying figure it out I've probably left all the real essentials out of my questions

We're working on a VFP workflow system where users are issued work via a form by email and the outcome can in most circumstances be one of three options, we want to send them a Word form with the wording for the three outcomes pre-written (if differs slightly with each form) and they simply tick a check box to indicate which it was. Occasionally they may need to adjust the wording if something out of the ordinary happens, so they need to be able to edit the form textboxes.

I'm trying to get data from the VFP to populate the form text boxes before its sent

Hope that makes the problem a little more intelligible
 
The moral of the story is search carefully through tek-tips and somewhere you will find the answer.

In this case create a word object, open up the .dot template, fill the textboxes by referencing their name

oWord=CREATEOBJECT('Word.Application')
oDoc=oWord.Documents.Open('c:\myform.dot')
oDoc.FormFields('TextBoxName').Result='Hello World'
oDoc.save

Sorry to have started a thread without proper research
 
johnhodgson

The moral of the story is search carefully through tek-tips and somewhere you will find the answer.

At least you discovered that much ;-)



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top