S
Simon Verona
I'm doing a mailmerge (actually labels) controlling Word via automation
from a vb.net project....
This works, except for one annoyance..
The source file is a Comma Seperated data file with a layout similar to :
Name,Address1,Address2,Address3,Address4,Address5
"Mr Smith","no 1 aroad","a town","a county","a country","a postcode" etc
etc
I'm mailmerging with the following line of code:
Doc.MailMerge.OpenDataSource(name:=filename, _
ConfirmConversions:=False, ReadOnly:=True, LinkToSource:=True, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False, _
Format:=Word.WdOpenFormat.wdOpenFormatText, Connection:="",
SQLStatement:="", SQLStatement1 _
:="", SubType:=Word.WdMergeSubType.wdMergeSubTypeOther)
This works, except that a pop up window appears prompting for field and end
of record delimeters. How can i force this to use a comma and "enter" to
open the datasource?
Many thanks in advance
Simon Verona
from a vb.net project....
This works, except for one annoyance..
The source file is a Comma Seperated data file with a layout similar to :
Name,Address1,Address2,Address3,Address4,Address5
"Mr Smith","no 1 aroad","a town","a county","a country","a postcode" etc
etc
I'm mailmerging with the following line of code:
Doc.MailMerge.OpenDataSource(name:=filename, _
ConfirmConversions:=False, ReadOnly:=True, LinkToSource:=True, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False, _
Format:=Word.WdOpenFormat.wdOpenFormatText, Connection:="",
SQLStatement:="", SQLStatement1 _
:="", SubType:=Word.WdMergeSubType.wdMergeSubTypeOther)
This works, except that a pop up window appears prompting for field and end
of record delimeters. How can i force this to use a comma and "enter" to
open the datasource?
Many thanks in advance
Simon Verona