index > Visual Studio Tools for Office > from a word document i need to extract some information and displ...

from a word document i need to extract some information and displ...


from a word document i need to extract some information and display in a text box

from a word document i need to extract name and email id and display in 2 diff text boxes




mail me at rajesh.batchu@cesltd.com
Rajesh batchu

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
John R. Durant - MSFT
reply 2

You can use google to search for other answers

 

More Articles

Deploying Word Template
Null values displayed as 0 in OWC Pivot Table
Import xml
Error loading the requested managed object: Version 2.0 is not a ...
Globalization and Localization Problem with Excel and VSTO 2005.
get an idispatch of active document
Text / MS Word in .net and printing - any suggestions?
Can a program created for outlook 2003 run with 2000?
VSTO and OLE Automation
Can't load CustomXMLParts since Technical Refresh
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Basic VSTO questions
updating error
Do userproperties exist on a email folder?
Transparency of commandbarbutton images...
How do I deploy other apps w/ Outlook So…
String parsing in VBA 6.3
Using Computer.Clipboard And Excel
Microsoft Outlook 2003 query - How to..
sheet change event target (range) and na…
Deployment a Word Solution with actions …
Problem using Chart Export with VB .NET …
can I have a macro with VSTO?
Referencing a VSTO Office Project (Word …
Can't Run a Excel Workbook application u…
Change Style of AutoTextEntry

Hot Articles

Outlook, contact form
Avoiding security alert in Outlook while…
"The project cannot be created"…
Using a template on a template
Is it possible to move an InlineShape ar…
Insert contents of a byte[] or stream ob…
Odd behavior on explicitly calling a cus…
easiest way to pipe data from word doc t…
vsto for office v3 requires winfx runtim…
Assembly not referenced error when using…
Outlook: Make mail properties readonly
VSTO 2005 Outlook Addin Setup
Office10 directory and weirdness
OutOfMemoryException with new ServerDocu…
XML and Word 2002

Recommend Articles

Import external data in Excel w/ Visual …
Using VB Forms in Word 2003
VSTO 2005 Beta2 ServerDocument sample in…
Deploying research services problem
Filter in Word 2003
VSTO2005 performance
Word and line command argoment
How to Write Worksheet to MemoryStream i…
vba to filter cells by there font color
Error on Schema Designer closes Visual S…
add in problem in outllok editor
add-ins dont works for ms word
Infopath 2007 - Odd Problem with Decimal…
How to do this in C#
Excel ListObject Problems