Word Inter-op - Mail Merge

  • Thread starter Thread starter Lorenzo Barone1962
  • Start date Start date
L

Lorenzo Barone1962

Guest
I have an existing mail merge word document (docx). This is a docx was once a 2003 document(.doc) file. Now it is a docx file in compatibility mode.

My mail merge document already has a data source that comes from an ms-access database e.g. C:\Sales.accdb. The datasource come from a table called Orders. When you open the word document the dialog box comes up with Select * FROM 'Orders' etc, etc...

All OK so far. Now what I want to do is via C# VS using the word inter-op, is some how change only the data source e.g to D:\SalesAust.accdb. I don't want anything else to change. I need this because I have about 100 letters in a production environment and I want to set up a UAT environment. I thought the best way to do this is to be able to just change the data source through a property.

Eagerly awaiting your response.

Continue reading...
 
Back
Top