mitchert
05-18-2009, 03:09 PM
This should be a simple problem, but I haven't been able to find the answer. Here's what I want to do:
Start with a Word doc that contains two paragraphs of text. The user inputs information via checkboxes and text fields. Based on the selections, the program writes different text into the template file.
Example: Template says, "Hello Goodbye." The VB program has a text field called "name" and two check boxes "yes" and "no" for the question, "do you like Microsoft?" User enters the name Chuck and checks "yes" then hits "submit." A new Word doc is created that says "Hello Chuck. I'm glad you like Microsoft. Goodbye."
That's it. (Told you it was simple.) I would much appreciate it if someone can direct me to sample code that does that sort of thing.
Start with a Word doc that contains two paragraphs of text. The user inputs information via checkboxes and text fields. Based on the selections, the program writes different text into the template file.
Example: Template says, "Hello Goodbye." The VB program has a text field called "name" and two check boxes "yes" and "no" for the question, "do you like Microsoft?" User enters the name Chuck and checks "yes" then hits "submit." A new Word doc is created that says "Hello Chuck. I'm glad you like Microsoft. Goodbye."
That's it. (Told you it was simple.) I would much appreciate it if someone can direct me to sample code that does that sort of thing.