word xml layout

I wish to populate a large word document from information supplied by users on a form which combines their information with existing information from a SQL Server database. My quest is how to lay this out. I am using Visual Studio Beta 2, Office Professional 2003, and SQL Server. From SQL Server I generated an XML record of data from a stored procedure. Using this record as a template in Visual Studio I have marked up the word document for XML and built the .xml and .xsd by building a Visual Studio/Office Tools/Word Template Project. I now need to make a form to take user input and combine it with data from SQL Server to make an XML record that would populate and generate the word document. I would like to do this all in XML, but do not know what type of form to use, window form, user form, etc. How to have the form launch before the word document and how to generate the information into XML for the word document. Any general help, I have search all the webcasts and walkthroughs and such.
[1009 byte] By [Manonbbar] at [2007-12-16]
# 1
Many VSTO 2003 Word samples deal with this problem in one way or another.
You would typically display a Windows Form in the Startup event. Then you would read the information entered by the user and then either replace the content of pre-existing XML nodes with information supplied by the user or replace a portion of the document with generated WordML using the TransformDocument Word OM API. Both approaches are demonstrated in the following sample:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrsamSampleDocumentThatPushesDataToADONET.asp

--
This posting is provided "AS IS" with no warranties, and confers no rights.

IouriSimernitski-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...