microsoft word

C# Remove or Replace Microsoft Word Special Characters

When users cut and paste text from Microsoft Word, special characters that are not web friendly are usually pasted in with the text. One common character is the word style apostrophe (‚) instead of the common HTML apostrophe ('). If you want to remove this kind of input from your text before it is saved to a database, you will need to search the text for these special characters.

It is actually a bit annoying to find what these actual characters codes are. Here is a simple method that replaces each of these characters with their HTML equivelant.

	

Office 2007 Change Default Document Save Type

By default in Office 2007, documents are saved in the new "x" format. For instance, word documents are now saved with the ".docx" extension instead of the old ".doc". In many business environments, Office 2007 is still not the norm. In those cases, it becomes quite an annoyance to send office documents to other customers and collegues who do not have Office 2007.

Microsoft Word Spell Checker Doesn't Check Cut and Pasted Text

There are times when I will have a block of text that I am typing in Visual Studio that will be displayed to the user as a message or will be part of the UI (User Interface).

After completing the typing I will look at it and know that some of the words are misspelled. I will copy the block into Word but the spell checker will not highlight the typos. Even if you take the time to find the button in the menu that spell checks the entire document, the misspelled words will still not underline.

Microsoft Word Spell Checker Doesn't Check Cut and Pasted Text

There are times when I will have a block of text that I am typing in Visual Studio that will be displayed to the user as a message or will be part of the UI (User Interface).

After completing the typing I will look at it and know that some of the words are misspelled. I will copy the block into Word but the spell checker will not highlight the typos. Even if you take the time to find the button in the menu that spell checks the entire document, the misspelled words will still not underline.

Recent comments