Turn off AutoCorrect in Word programmatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing this application in C# that uses word documents. I tried to save
what users typed in Word into the database. Word automatically changes
symbols like -, ', ". And when i get it out from the database again, these
symbols are corrupted.

now i want to turn off AutoCorrect in word programmatically.
 
Nothing much to do with AutoCorrect. What you had in the Word file were
n-dashes and curly quotes.
"AutoCorrect as you type" will help users insert the typographically correct
characters, but the problem is at your end.

These characters are in the Windows code page (codes 150, 145, 146, 147,
148), but not in ISO 8859-1 (Latin 1).
All the characters with codes between 128 and 159 will be problematic,
though the others (like the ellipsis ...) aren't as widely used.

If you don't mind loosing the info, you could replace them with the hyphen
and straight single/double quotes before you feed the text to the data base?
Or check the import/export options of your database program so it doesn't
mess with those characters.

Regards,
Klaus
 
The options can be found in Word -> Tools menu -> AutoCorrect Options, so i
thought this is under AutoCorrect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top