Microsoft Office Tutorials and References
In Depth Information
Where Does Your Document Get Its Design?
Templates are stored on your computer and are available online at Office.com (as you saw
in Chapter 3, “Right Now Document Design with Word 2010”). When you open a new
document based on a template, you are creating a new file that includes all the elements
included in the template file—basic content elements like text and heading styles, column
layout, color scheme, and page margins, as well as more specialized controls like building
blocks, content controls, and macros.
Templates can be as complex or as simple as you choose, but their primary purpose is to
streamline your document design and save it in such a way that you can use it consistently
in other documents you create. For example, you might create a simple template for your
business letterhead that includes the address block, space for the recipient name, the date,
boilerplate text, and your signature. You can use the letterhead template over and over
again for sales or prospect letters. Instead of creating a new document each time and
choosing all the formatting settings—margins, fonts, colors, and so forth—you can base
your new document on the template and all the formats are applied automatically for you.
Simple, effective, and efficient. Nice.
Templates can also contain complex elements and operations, including macros that
automate specific functions in the document; content controls that gather data from end users
(or merge data from a data source); sophisticated formats; and much more. For example,
you might include multicolumn designs, alternating page formats, sections, header and
footer specifications, and styles for footnotes, endnotes, citations, and more.
Creating Documents Programmatically
Word 2007 and Word 2010 documents use a different file format than files created
in earlier versions of Word. Beginning with Word 2007, the software moved to Ecma
Office Open XML format, an efficient means of data storage that separates content
from format and enables you to use and share your content easily in a variety of forms.
Although it seems as though you open, edit, and close a singular document, the Word
2010 document you modify is actually a collection of files, zipped together and
presented to you as a single document. The ZIP package contains document parts, such
as individual XML files, graphics, charts, and embedded objects. Viewing the internal
components of the ZIP package is simply a matter of renaming the file with a .zip file
extension and opening it in any tool that functions on ZIP technology. The following
figure shows a view of a template opened in Windows Explorer along with the contents
of the Word folder.