passing parameters from WPF to WORD

Apr 21, 2009 at 11:30 AM

In my application there comes a moment when I have to send a letter to the customers; The lay-out of these letters are the same, but every customer does have his own 'parameters' that have to be filled in.
My idee was to make a template in a Word document, and make my parameters 'visible' in the program by using something like '#1#', '#2#' and so on. In my program I get the data for every customers out of the database; read my Word template and replace the parameters (#1#, #2#..)  for the correct data.

Can anybody tell me if this is the correct way of doing this? Or is there an easier way?

Thanks in advance.