Last post Jan 14, 2011 10:27 AM by Cory M.
Jan 07, 2011 01:19 PM|Cory M.|LINK
I am building a solution that allows users to pick and chose sections from a Word template, populate those sections with content from a database, and assemble the new data into a new .docx document
So far, I have successful methodologies for locating content and transplanting that content into a new document.
I am using the OpenXML SDK 2.0 to locate content by Styles and Content Controls. I am able to create
objects containing elements such as Paragraphs, SdtBlocks, Run, etc.
I need to find an elegant way to serialize these element blocks so I can store them as whole blocks of type VARBINARY in a SQL 2005 database. Can someone please point me to a
viable example for serializing these OpenXML parts/elements?
OpenXML Serialization VARBINARY
Jan 09, 2011 09:14 PM|Decker Dong - MSFT|LINK
Not tried yet. But I think maybe you should use XMlSerilization to serilize the whole xml into a class (object). And save the object
into the varbinary stream. Then you can deserialize it again to get properties.
Hope this helps.
Jan 14, 2011 10:27 AM|Cory M.|LINK
I actually am starting with Objects such as Paragraph and SDT Block so thats nice.