We have a MOSS 2007 portal here with an Infopath doc library. One Infopath doc containt various informations about a customer, product they needed, technological information,address, etc. Now, we would like to take some of those informations and merge it into a Microsoft Word 2003 template. The goal here is to automate, for example, the creation of a contract where the client name, address, targeted product, etc. would be automatically filled into the word template. I already tried to insert a field from an Infopath XML document without success (it tell me that Word get an error while loading the xml file). I don't really know what to look for...
So, the question is : How would you do that? Custom code in the Word template? Custom code in the Infopath form? Secret magic feature on the MOSS?