MasterRacker
New member
I have a situation where I will have a C# app doing a query on a DB to get a list of users. I need to use that user list as the source of a MailMerge for Word.
Can the contents of a DataTable be fed directly into Word for this? If I performed the kludge of copying the table into Excel, would that sheet have to be saved before Word could use it? (Worse would the user have to actually run through the MailMerge wizard?)
In the ideal situation, I wuold like to end up with the user clicking a single button in the C# app, latting magic happen, and having Word pop up with the finished mailmerge with no other user interaction.
Also I would like to avoid any VBA in the letter templates since there will be more than one and I don't want to have to copy code into multiple templates.
Jeff
The future is already here - it's just not widely distributed yet...
Can the contents of a DataTable be fed directly into Word for this? If I performed the kludge of copying the table into Excel, would that sheet have to be saved before Word could use it? (Worse would the user have to actually run through the MailMerge wizard?)
In the ideal situation, I wuold like to end up with the user clicking a single button in the C# app, latting magic happen, and having Word pop up with the finished mailmerge with no other user interaction.
Also I would like to avoid any VBA in the letter templates since there will be more than one and I don't want to have to copy code into multiple templates.
Jeff
The future is already here - it's just not widely distributed yet...