Problem with datasource when upgrading from 2000 to 2007
Hello,
I have a mailmerge document in Word 2000, that gets called like so
Dim oWordApps = New Word.Application ' use late
binding
Dim oDocument = New Word.Document ' use late binding
oWordApps.Documents.add(Application.StartupPath &
"\vendorlabel.dot")
oDocument = oWordApps.Documents.Item(1)
When I make the new file visible, all I have to do is click on the
Merge button to start a new merge (the dot already knows the path to
the csv file that contains the merge information).
In 2007 I have to use the wizard to and select the file manually.
How do I tell 2007 the name of the datasource, preferably in a way
that won't mess up 2000?
--
J. Moreno
|