Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Spelling and Grammar / November 2005

Tip: Looking for answers? Try searching our database.

Using office spell check from VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David De Bono - 29 Nov 2005 22:49 GMT
Hi,

I'm using VB 6 with the Word object:

   Dim oWord As Word.Application
   Dim oDoc As Word.Document
   Dim oDic As Word.Dictionary
   Dim oSuggestions As SpellingSuggestions

       Set oWord = CreateObject("Word.Application")

       Set oDoc = oWord.Documents.Add

       Set oDic = oWord.Languages(wdEnglishUS).ActiveSpellingDictionary

       Set oSuggestions = oWord.GetSpellingSuggestions(Trim$(sWord), , ,
oDic)

oDic contains the dictionary object. And it contains the correct dictionary
(MSSP3EN.LEX)

The line works fine when using the Norwegian spell checker.

When trying to use another spell language it does not fail, but returns
nothing.

If I change the default office language (Microsoft Office 2003 Laguage
settings -> Default office behaviour language) to English it works with
English spell check.

So when using the spell checker in the same laguage as office behaviour it
works.

Any ideas ?

David
Cindy M  -WordMVP- - 30 Nov 2005 09:57 GMT
Hi David,

> The line works fine when using the Norwegian spell checker.
>  
[quoted text clipped - 9 lines]
>  
> Any ideas ?

Look up this article in Google Newsgroup search. I think Richard describes
what you're looking for

Automating spell check from outside Word
From: Richard.Pearce@broadcastingdata.com (Richard Pearce)
Newsgroups: microsoft.public.word.international.features
Subject: MainDictionary parameter of CheckSpelling method does not work:
Workaround
Date: 1 Mar 2002 04:39:33 -0800

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.