|
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can apply named styles to regions in workbooks. Excel supplies a number of predefined styles.
The Format Cells dialog box displays all the options you can use to format cells, and each of these options is available from your code. To display this dialog box in Excel, click Cells on the Format menu....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

When you create a document programmatically, the new document is a native Microsoft.Office.Interop.Word..::.Document object. This object does not have the additional events and data binding capabilities of a Microsoft.Office.Tools.Word..::.Document host item. For more information, see Programmatic Limitations of Host Items and Host Controls.
Starting in SP1, you can use application-level add-ins to convert any Microsoft.Office.Interop.Word..::.Document object to a Microsoft.Office.Tools.W...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The Open method opens the existing Microsoft Office Word document specified by a fully qualified path and file name. This method returns a Microsoft.Office.Interop.Word..::.Document....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can close the active document or you can specify a document to close. Closing the Active Document
There are two procedures for closing the active document: one for document-level customizations and one for application-level add-ins....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

There are several ways to save Microsoft Office Word documents. You can save a document without changing the name of the document, or you can save a document with a new name....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Set an initial range starting with the first seven characters in the document.
The following code example can be used in a document-level customization....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The following example selects the first paragraph in the document and changes the font size, the font name, and the alignment. It then selects the range and displays a message box to pause before executing the next section of code. The next section calls the Undo method of the Microsoft.Office.Tools.Word..::.Document host item (for a document-level customization) or the Microsoft.Office.Interop.Word..::.Document class (for an application-level add-in) three times. It applies the Normal Indent st...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The information set out in this topic regarding Microsoft Word is presented exclusively for the benefit and use of individuals and organizations who are located outside the United States and its territories or who are using, or developing programs that run on, Microsoft Word products that were licensed by Microsoft before January 2010, when Microsoft removed an implementation of particular functionality related to custom XML from Microsoft Word. This information regarding Microsoft Word may not ...
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can insert text into a placeholder bookmark in a Microsoft Office Word document so that you can retrieve the text at a later time, or to replace text in a bookmark. If you are developing a document-level customization, you can also update text in a Microsoft.Office.Tools.Word..::.Bookmark control that is bound to data. For more information, see Binding Data to Controls in Office Solutions....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The Find object is a member of both the Selection and the Range objects, and you can use either one to search for text in Microsoft Office Word documents. The replace command is an extension of the find command. For information about replacing text in documents, see How to: Search for and Replace Text in Documents....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Call the PrintOut method of the Microsoft.Office.Tools.Word..::.Document class to print the entire document. To use this example, run the code from the ThisDocument class in your project....
|
|
|
|
Total Hits: 0 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The Tables collection is a member of the Microsoft.Office.Interop.Word..::.Document, Microsoft.Office.Tools.Word..::.Document, Selection, and Range classes, which means that you can create a table in any of those contexts. You use the Add method of the Tables collection to add a table at the specified range....
|
|
|
|
|
|