Hello,
I've created a Word-template for a letter. I've made some fields in the
template (such as 'customer number', 'name', ...) as follows: insert
field - DocVariabele with name 'customer number' and 'name'. Now I want
to fill these fields from my application and print them:
Dim myWord As New Word.Applicatio n
myWord.Document s.Add("c:\templ ate.dot")
'fill the fields
'...
'print
myWord.ActiveDo cument.PrintOut ()
myWord.Quit(Wor d.WdSaveOptions .wdDoNotSaveCha nges)
So what code is needed before I print the document to fill my template
fields?
Thanks
Steven
I've created a Word-template for a letter. I've made some fields in the
template (such as 'customer number', 'name', ...) as follows: insert
field - DocVariabele with name 'customer number' and 'name'. Now I want
to fill these fields from my application and print them:
Dim myWord As New Word.Applicatio n
myWord.Document s.Add("c:\templ ate.dot")
'fill the fields
'...
myWord.ActiveDo cument.PrintOut ()
myWord.Quit(Wor d.WdSaveOptions .wdDoNotSaveCha nges)
So what code is needed before I print the document to fill my template
fields?
Thanks
Steven
Comment