Similar Threads:
1.How to change the dictionary language for spellcheck
I need to know how to programmatically change the dictionary language for
spellcheck. I have the following code in my .net app which works great but
only checks spelling in the current word dictionary, I need to be able to
change this....any help is appreciated. Thanks.
Namespace SpellChecker
Public Class Spelling
Public Shared Function Check(ByVal TextToCheck As String) As String
TextToCheck = Trim(TextToCheck)
Try
' Create Word and temporary document objects.
Dim objWord As Object
Dim objTempDoc As Object
' Declare an IDataObject to hold the data returned from the clipboard.
Dim iData As IDataObject
' If there is no data to spell check, then exit sub here.
If TextToCheck = "" Then
Exit Function
End If
objWord = New Word.Application
objTempDoc = objWord.Documents.Add
objWord.Visible = False
' Position Word off the screen...this keeps Word invisible
objWord.WindowState = 0
objWord.Top = -3000
' Copy the contents of the textbox to the clipboard
Clipboard.SetDataObject(TextToCheck)
' With the temporary document perform spell check
With objTempDoc
.Content.Paste()
.Activate()
.CheckSpelling()
' .CheckGrammar()
' After user has made changes, use the clipboard to
' transfer the contents back to the text box
.Content.Copy()
iData = Clipboard.GetDataObject
If iData.GetDataPresent(DataFormats.Text) Then
'Return the text..
Check = CType(iData.GetData(DataFormats.Text), _
String)
End If
.Saved = True
.Close()
End With
objWord.Visible = False
objWord.Quit()
MessageBox.Show("The spelling check is complete.", _
"Spell Checker", MessageBoxButtons.OK, _
MessageBoxIcon.Information)
' Microsoft Word must be installed.
Catch COMExcep As COMException
MessageBox.Show( _
"Microsoft Word must be installed for Spell/Grammar Check " _
& "to run.", "Spell Checker")
Catch Excep As Exception
MessageBox.Show("An error has occured.", "Spell Checker")
End Try
End Function
End Class
End Namespace
2.How do I change the default dictionary language in Outlook Exp
3.delete dictionary languages
How do I delete dictionary languages from the scroll box interface in spell
check? I only want to see German and English. I find it frustrating to have
to scroll through Galician and other languages I will never need and are not
even loaded onto my computer. Thanks for your help.
4.Change dictionary language for Word on Terminal Server
Hi,
We have a Windows 2003 Terminal Server / Citrix environment with Office 2003
SP2 US with the Dutch MUI published for our users.
The Dictionary Language in Word is Dutch but it needs to be English US
standard for all users. How can I change this for Terminal server users? I
can not find a registry or policy setting to do this. Is this set by the
Regional settings on the local pc or the terminal server?
Fond regards,
Patrick
5.Canadian Dictionary language problem
I'm using Office 2007 on XP SP3.
Does anyone know why Spell Check using the English (Canadian) setting would
ignore the word, "centre," when it's misspelled as "center"?
I write in U.S. English, but the custom dictionary of the document I'm
writing is set (for various purposes) to Canadian English. When I write,
"center," the dictionary doesn't pick it up in Spell Check and suggest
"centre" as per Canadian usage -- but, it does note when I spell "colour" as
per American "color."
The whole document is set to Canadian English. I went into the Custom
Dictionary under WORD OPTIONS > PROOFING and checked to see if I had added
"center" to the Canadian Custom Dictionary. Not there.
6. Dictionary Language options disappears from Spelling and Grammer
7. Changing the default dictionary language
8. Need to switch Dictionary Language