freelanceprogrammers.org Forum Index » XML / XSL

REFERENCE: Importing XML Data to Word 2003 Using Visual Stud


View user's profile Post To page top
cgh365 Posted: Tue Oct 18, 2005 8:30 pm


Joined: 14 Oct 2005

Posts: 3
REFERENCE: Importing XML Data to Word 2003 Using Visual Stud
Importing XML Data to Word 2003 Using Visual Studio Tools for Office

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_wd2003_ta/h
tml/OfficeVSTO_WordToImportXML.asp

Iouri Simernitski
Mark Iverson
Microsoft Corporation

September 2005

Applies to:
Microsoft Office Professional Edition 2003
Microsoft Office Word 2003
Microsoft Visual Studio .NET 2003
Microsoft Visual Studio Tools for the Microsoft Office System, Version 2003

Summary: Learn about importing XML data from a database into Word documents
using Visual Studio Tools for Office, Version 2003. Learn to create a document
programmatically that contains a button control allowing the user to access a
database. (9 printed pages)

Download OfficeVSTO_WordToImportXML.exe
<http://www.microsoft.com/downloads/details.aspx?FamilyId=055BE891-B6F8-47E1-9DA
B-1BCD8FCE5787&displaylang=en> .


Contents


Introduction
Options for Inserting XML in Word
Extracting XML Data Using XPath
Inserting Arbitrary XML
Conclusion
Additional Resources
About the Authors

Introduction

Microsoft Office Word 2003 opened new possibilities for the Word developer by
introducing an XML version of its file format, known as WordprocessingML. You
can now save a Word document as an XML or WordprocessingML file that describes
the document, with elements representing items such as text, tables, lists,
styles, and everything else necessary to describe a document fully. Because you
are no longer limited to a binary file format, the possibilities of
programmatically manipulating a Word document are dramatically increased. Also,
in Word you can attach a custom schema to a document and use it to work with and
manipulate custom XML data. This enables you to insert elements from a schema
into a document to hold specific information. For example, if you attach a
schema to a document and that schema describes data specific to books, you can
add elements like <author>, <isbn>, <title>, and <copyrightdate> to the document
to store information in XML files that adhere to the added schema. Your ability
to import data from a database into one or many documents increases when you
work programmatically. You can also parse a WordprocessingML file for data
inside a schema`s elements and retrieve the data for use elsewhere. This article
demonstrates one possibility by showing how you can take information from a
database and persist it inside a Word document in the form of a table.

<< MORE AT SITE >>



-------------------------
Grant Hogarth
grant@...
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help