Mass
October 19th, 2001, 08:35 AM
Hi all,
I welcome opinioms on writing a spell checker & Thesaurus with VB.
Mass
I welcome opinioms on writing a spell checker & Thesaurus with VB.
Mass
|
Click to See Complete Forum and Search --> : Algorithm for making spelling suggestions Mass October 19th, 2001, 08:35 AM Hi all, I welcome opinioms on writing a spell checker & Thesaurus with VB. Mass Iouri October 19th, 2001, 10:35 AM Why to write your own spell checker when you can call one from word. Here the example how to use it 'works only with RTF text box (don't forget to reference MSWord 8.0) On Error GoTo SpellCheckErr Dim oWord As Object Set oWord = CreateObject("Word.Application") 'Save the RTF Box contents to a temporary file rtfText.SaveFile "C:\temp\TEST.RTF", rtfRTF 'Open the saved document and spellcheck it oWord.Documents.Open ("C:\temp\TEST.RTF") oWord.ActiveDocument.SpellingChecked = False oWord.Options.IgnoreUppercase = False oWord.ActiveDocument.CheckSpelling 'Save the changes to the RTF file & close oWord.ActiveDocument.Save oWord.ActiveDocument.Close oWord.Quit 'Load the changes back to the rtf text box. rtfText.LoadFile "C:\temp\TEST.RTF", rtfRTF Set oWord = Nothing Screen.MousePointer = vbDefault MsgBox "Spell Check is complete", _ vbInformation, "Spell Check" 'delete the temp file Kill "c:\temp\test.rtf" Exit Sub Iouri Boutchkine iouri@hotsheet.com Mass October 19th, 2001, 12:17 PM Dear friend, Thanks, but I wanted to know how it is done. If you use Word, the user needs to have a ver of Word installed.Incase the user dosn't have MSWORD, could you please tell me the name of dlls or whatever is needed to be sand whith my application Regards, Mass codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |