S
steven
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.Application
myWord.Documents.Add("c:\template.dot")
'fill the fields
'...
'print
myWord.ActiveDocument.PrintOut()
myWord.Quit(Word.WdSaveOptions.wdDoNotSaveChanges)
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.Application
myWord.Documents.Add("c:\template.dot")
'fill the fields
'...
myWord.ActiveDocument.PrintOut()
myWord.Quit(Word.WdSaveOptions.wdDoNotSaveChanges)
So what code is needed before I print the document to fill my template
fields?
Thanks
Steven