Working with Documents
The topics in this section provide step-by-step procedures and code examples for using the object model of Microsoft Office Word to work with documents in Office projects.
In some cases, the ways that you perform these tasks in application-level add-ins is different from the ways that you perform them in document-level customizations.
Task |
Procedure |
---|---|
Create a document based on the Normal template or a different template. |
|
Open a specified document as read/write or read-only. |
|
Close the active document or a specified document. |
|
Save a document with the same name or a new name. |
|
Print an entire document or only the current page. |
|
Display the print preview for a document. |
|
Access a specific document when multiple documents are open. |
|
Display a built-in dialog box and collect user input. |
|
Use functionality in a built-in dialog box without displaying it. |
|
Add a picture or Word Art to a document. |
|
Prevent users from editing a document or a part of a document. |
|
Check spelling. |
|
Add a header or footer to a document. |
|
Remove all comments from a document. |
See Also
Concepts
Office Solutions Development Overview