Tag Archives: Word

List the unique words in a Microsoft Word file in C#

The example List unique words in a text file in C# shows how to list the unique the words in a text file. This example shows how to list the unique words in a Microsoft Word file. Before you start, … Continue reading

Posted in files, Office, strings, Word | Tagged , , , , , , , , , , , , | 1 Comment

Remove the hyperlinks from a Word document in C#

This example shows how you can remove the hyperlinks from a Word document. When you select text on a web page and paste it into a Word document, the result often contains hyperlinks that you don’t want. (Actually after you … Continue reading

Posted in files, Office, Word | Tagged , , , , , , , , , , , | Leave a comment

Add a picture to a Word document in C#

This example shows how a C# program can add a picture to a Word document. It also shows how to use a bookmark to find the beginning of the Word document, make text flow around the picture, and align the … Continue reading

Posted in interoperability, Office, Word | Tagged , , , , , , , , , , , , , , , | 3 Comments

Create a Word document in C#

This example shows how to make a C# program create a Word document. First open the Add References dialog. On the COM tab, select “Microsoft Word 14.0 Object Library” (or whatever version you have installed on your system). Add the … Continue reading

Posted in interoperability, Office, Word | Tagged , , , , , , , , , , , , | 12 Comments

Use Microsoft Word to make a timezone conversion chart in C#

This example uses Word to generate a timezone conversion chart that lets you easily convert hours from one timezone to another. Select a date and the two timezones. Then press Make Chart to make the conversion chart. (You need to … Continue reading

Posted in internationalization, Office, Word | Tagged , , , , , , , , , , , | 1 Comment