Skip to content

monalisali/word-processing-document-api-examples-t418535

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Processing Document API Examples

Files to look at:

This example demonstrates how to use the Word Processing Document API to programmatically manage rich edit documents, without the need for Microsoft Word to be installed.

The application includes the RichEditControl used to display and edit the code. The code modifies the rich document created or loaded by the RichEditDocumentServer instance. To see the results, open the document in Microsoft Word by clicking the button.

You can modify the code and watch the result. If an error occurs during compilation or execution, the backcolor of the code window changes.

This sample introduces API properties and methods used to perform the following operations:

- Create, load, save and print documents;
- Insert text to the document range or paragraph;
- Change paragraph or character formatting;
- Create and apply new character, paragraph or linked style;
- Create bulleted or numbered lists;
- Insert and resize inline pictures;
- Insert and modify floating pictures or text boxes;
- Create, fill, colorize tables, merge or split table cells;
- Change document page layout - create columns, add line numbering, change page layout settings;
- Insert bookmarks or hyperlinks;
- Create, edit and delete comments;
- Set document properties;
- Modify page headers; 
- Insert and modify fields.

For more information, review the Examples section in the documentation.

To use this example in production code, the Universal Subscription or an additional Office File API Subscription is not required.


About

.NET, , Word Processing Document API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 86.4%
  • HTML 13.6%