Hi S.Y.M. Wong-A-Ton, I am struggling with the same problem and I am using
Office 2007, can you give me more information on how to replace certain parts
of a docx document with information from InfoPath?
Thanks,
Elaine
Hi Elaine,
Sure thing!
First things first: You need to read up on the new OpenXML format that Word
uses. Use these links:
http://msdn2.microsoft.com/en-us/library/ms771890.aspx
http://msdn.microsoft.com/msdnmag/issues/06/11/BasicInstincts/default.aspx
http://blogs.msdn.com/brian_jones/
Then, if you are using InfoPath 2003 and Word 2007, you'll need Visual
Studio 2005, the InfoPath 2003 Toolkit for Visual Studio 2005, and the .NET
framework 3.0 runtime to be able to manipulate docx files from within
InfoPath.
Unfortunately, I do not have an InfoPath 2003 / Word 2007 environment to
test things out on, so I've created a solution for InfoPath 2007 / Word 2007
environments. Note: The latter environment requires Visual Studio 2005, VSTO
2005 SE which contains a template to create InfoPath 2007 code behind forms,
and the .NET Framework 3.0 runtime to manipulate docx files from within
InfoPath.
The solution I've created can be found here:
http://enterprise-solutions.swits.net/infopath2007/article.php?t=convert-infopat
h-form-into-word-2007-document-xslt-c-sharp&c=infopath2007
Good luck!
---
S.Y.M. Wong-A-Ton
> Hi S.Y.M. Wong-A-Ton, I am struggling with the same problem and I am using
> Office 2007, can you give me more information on how to replace certain parts
[quoted text clipped - 60 lines]
> > > > >
> > > > > Thanks a ton in advance,
elin - 01 Jan 2007 21:00 GMT
Happy New Year, S.Y.M Wong-A-Ton. Wow, thanks, this is such a great new year
gift!
While I was waiting for your reply, I viewed a webcast called "Creating and
Deploying Custom Document Information Panels for Word 2007,
http://blogs.msdn.com/infopath/archive/2006/11/06/data-binding-between-document-
information-panel-and-word-document.aspx"
which help me understand the relationship between InfoPath 2007 and Word
2007. I am posting my InfoPath form on Sharepoint 2007 for users to fill out.
My goal is to auto create a Word document once the user submit the form with
the information that is on the form. But I don't know how to bring up the
Word template and populate the fields from InfoPath 2007. Do you think
binding the data between DIP and Word is a better way to go since I am using
SharePoint 2007?
Thanks,
Elaine
> Hi Elaine,
>
[quoted text clipped - 89 lines]
> > > > > >
> > > > > > Thanks a ton in advance,