Microsoft Office Word 2007

Содержание

Слайд 2

OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing

OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich
for Custom XML

Tristan Davis
Program Manager
Microsoft Corporation

Слайд 3

Agenda

The world today (Microsoft Office Word 2003)
Structural Integrity
Content Controls
Data/View Separation
Microsoft Office XML

Agenda The world today (Microsoft Office Word 2003) Structural Integrity Content Controls
data store
XML mapping
Conclusion
Questions

Слайд 4

The World Today

Word 2003 was a major step forward:
XML-based file format (WordprocessingML)
Customer-defined

The World Today Word 2003 was a major step forward: XML-based file
schema support
However, a big toolbox doesn’t mean it’s easy to build a house
You need XML schema, XSLT, client-side code, etc.

Слайд 5

The World of Word 2007

Make it easier to push/pull customer data within

The World of Word 2007 Make it easier to push/pull customer data
Word documents
How?
Structural integrity (Content Controls)
Provide content restriction, lockdown capability
Data/view separation (Office XML data store)
Place to store custom XML data in the new file format
Each item is stored as a separate part within the package

Слайд 6

Tristan Davis Program Manager
Microsoft Word

Structuring a Document

Tristan Davis Program Manager Microsoft Word Structuring a Document

Слайд 7

Content Controls

Evolution of customer-defined XML
No XML schema required
Provide friendly end user exposure

Content Controls Evolution of customer-defined XML No XML schema required Provide friendly
of structured content
Each provides unique content restrictions / user interface that doesn’t affect layout
Controls can be grouped to lock them down as a unit
Controls can be mapped to XML data

Слайд 8

Tristan Davis Program Manager
Microsoft Word

XML Data Store / XML Mapping

Tristan Davis Program Manager Microsoft Word XML Data Store / XML Mapping

Слайд 9

Office XML Data Store

Customer-defined XML (incl. WSS/Office doc props) stored separately from

Office XML Data Store Customer-defined XML (incl. WSS/Office doc props) stored separately
WordprocessingML as a part in Open XML format
Any XML can be stored (with or without XML schema)
XML data is available as an editable tree (using familiar DOM) within Word
Can be populated on a server using WinFX or a client using Word OM

Слайд 10

XML Mapping

Link document controls to nodes in the XML data store
Provides for

XML Mapping Link document controls to nodes in the XML data store
true data/view separation model in Word
Mappings are created using standard XPath expressions
Mappings can be set up to ‘auto-attach’ to incoming data
Out-of-the-box support for mapping to Office properties

Слайд 11

Tristan Davis Program Manager
Microsoft Word

Mapping WSS Data Into Word

Tristan Davis Program Manager Microsoft Word Mapping WSS Data Into Word

Слайд 12

Mapping WSS Data into Word

Word 2007 has native integration between the WSS

Mapping WSS Data into Word Word 2007 has native integration between the
property set and the XML mapping architecture:
WSS properties are stored as items in the Office XML data store
Properties can be mapped to content controls in the document
WSS docs automatically get UI on the ribbon to do this mapping
InfoPath property panel is synchronized with the data store

Слайд 13

Client Side Programming

Recommended approach: program directly against the data
InfoPath or Office OM

Client Side Programming Recommended approach: program directly against the data InfoPath or
– your choice
Word will automatically take care of the effects on the presentation via the XML mappings
Use shared error board to communicate validation errors to the user
Use controls OM if you need behavior for specific controls (e.g. to block user from exiting)

Слайд 14

Tristan Davis Program Manager
Microsoft Word

Using InfoPath for Client-Side Business Logic

Tristan Davis Program Manager Microsoft Word Using InfoPath for Client-Side Business Logic

Слайд 15

Tristan Davis Program Manager
Microsoft Word

Using Office OM for Client-Side Business Logic

Tristan Davis Program Manager Microsoft Word Using Office OM for Client-Side Business Logic

Слайд 16

Server Side Programming

Recommended approach: Using WinFX to navigate the file format
Adding a

Server Side Programming Recommended approach: Using WinFX to navigate the file format
part is as simple as adding a single relationship
Finding an existing part is done by namespace or GUID matching

Слайд 17

Tristan Davis Program Manager
Microsoft Word

Using Custom XML Data on the Server

Tristan Davis Program Manager Microsoft Word Using Custom XML Data on the Server

Слайд 18

Related Areas In VSTO V3

Document control support in the Microsoft Visual Studio

Related Areas In VSTO V3 Document control support in the Microsoft Visual
designer
Integration with .NET data binding
.NET programming model for the XML data store for document manipulation on client/server
Leveraging the XML data store / new file format for VSTO solution storage

Слайд 19

Conclusion

Two main themes to Word 2007 for solution creation
Make structured document more

Conclusion Two main themes to Word 2007 for solution creation Make structured
robust by providing controls and content groups
Provide true data/view separation by providing custom XML data store
Result: you have to write less code and your solutions are more reliable with Word as the editing environment

Слайд 20

Key Takeaways

Word 2007 allows for more granular control over structured data via

Key Takeaways Word 2007 allows for more granular control over structured data
content controls
Specialized UI, Content restrictions, locking, etc.
Word 2007 allows for separation of data and presentation via the Office XML data store
Word 2007 allows for automatic two-way synchronization between data and view via XML mapping

Слайд 21

Resources

Resources

Слайд 22

The 2007 Microsoft Office System Clients. Servers. Solutions.

Install Beta 2 today! It’s

The 2007 Microsoft Office System Clients. Servers. Solutions. Install Beta 2 today!
in your attendee bag

Learn more at the Office System TLC Demo Stations / Hands-on-Labs / Chalk-talks

Get more information http://www.microsoft.com/office/preview/default.mspx http://msdn.microsoft.com/office/

Talk

Lab

Demo

Слайд 23

Fill out a session evaluation on CommNet and
Win an XBOX 360!

Fill out a session evaluation on CommNet and Win an XBOX 360!
Имя файла: Microsoft-Office-Word-2007.pptx
Количество просмотров: 219
Количество скачиваний: 0