I'm using XML SDK 2.0 to mail merge a template document that uses complex field type. A sample is included below, it is a FORMTEXT field. The data from database will replace whole section starting from <w:fldChar w:fldCharType="begin"> to <w.fldChar w:fldCharType="end" />. Any recommandation/suggestion how to do it using SDK?
<w:r>
<w:fldChar w:fldCharType="begin"> <w:ffData> <w:name w:val="Date_LongDate01" /> <w:enabled /> <w:calcOnExit w:val="0" /> <w:textInput> <w:default w:val="{Date.Long Date}" /> </w:textInput> </w:ffData> </w:fldChar> <w:instrText xml:space="preserve"> FORMTEXT </w:instrText> <w:fldChar w:fldCharType="separate" /> <w:t>{Date.Long Date}</w:t> <w:fldChar w:fldCharType="end" /> </w:r>
thanks
Michael
Hi Michael,
If you are still looking into manipulating DOC files, I left a comment here: openxmldeveloper.org/.../159011.aspx
Thanks,
Ozgur Topcu
SoftArtisans
By the way, WordWriter can do mail merge with DOCX files as well.