C
Carl Mercier
I'm trying to launch a mail merge through automation from VB.NET. The code
works perfect with early binding. However, I'd rather use late binding in
order to support older Word versions (I'm using 2003).
When late binding (with the exact same code), Word always opens a
"Document1" blank document when I create the "Word.Application" object.
This behavior is not present with early binding, it just opens Word with no
default document. Is there anything I'm doing wrong? Here's a code
snippet...
Dim wrdApp As Object 'Word.Application
Try
' Create an instance of Word and make it visible.
wrdApp = CreateObject("Word.Document")
wrdApp.Application.Visible = True
Catch
Finally
wrdApp = Nothing
End Try
Thanks in advance!
works perfect with early binding. However, I'd rather use late binding in
order to support older Word versions (I'm using 2003).
When late binding (with the exact same code), Word always opens a
"Document1" blank document when I create the "Word.Application" object.
This behavior is not present with early binding, it just opens Word with no
default document. Is there anything I'm doing wrong? Here's a code
snippet...
Dim wrdApp As Object 'Word.Application
Try
' Create an instance of Word and make it visible.
wrdApp = CreateObject("Word.Document")
wrdApp.Application.Visible = True
Catch
Finally
wrdApp = Nothing
End Try
Thanks in advance!