He can anyone help me connecting a DSN datasource to a Word document with
Word 2003 ?
I am stuck here:
Object oConnection = "ODBC; DSN=ez_planner";
Object oQuery = strQuery;
Object oSubType = Word.WdMergeSubType.wdMergeSubTypeWord;
wrdMailMerge.OpenDataSource("", ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing,ref oMissing, ref oMissing, ref oMissing, ref
oMissing, ref oMissing, ref oConnection, ref oQuery, ref oMissing, ref
oMissing, ref oSubType);
wrdMailMerge.Execute(ref oFalse);
With this i get an error; ErrorCode -2146824090 int