Rajesh,
This all depends on a number of things.
What is the file format of your document? If you are dealing with the new XML file format, you can extract the XML without using the Word OM and just use some XPath statements or the new .NET libraries to get the XML.
Are you in a VSTO solution with a VSTO bookmark in the document? If so, then this is super easy.
If you are in the binary format (.doc etc.) and with no VSTO bookmarks, you will need to walk through more code to pull it together, but it is very doable.
If you are using Word 2007 with content controls, you will approach things differently again.
Please clarify how you are approaching the overall solution, and I'll steer you closer to a final solution.
John.
http://blogs.msdn.com/johnrdurant |