472,354 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

how to make a spell check program in vb using openoffice word

40
hi
i am getting probleum in converting a spell check progrma made in vb 6.0 and Ms-office Word into OpenOffice Word

when i made spell check program in Ms-Word and vb 6.0 it works fine
but i use the following code to make spell check program on OpenOffice and vb 6.0 it shows error "OBJECT REQUIRED" on line Set vReturn = vSpeller.SPELL(sWord, aLocale, args()) when correct spelling is stored in sWord variable

in previous program when a correct spelling came it skip that word and go to next word
i also want to how to create a custum dictionary in openOffice like Ms-Office Custom.dic

Dim sWord As String
Dim vReturn As Object
Dim i As Integer
Dim aLocale As Object
Dim oSM As Object
Dim oPropertyValue As Object
Dim emptyArgs As Object
Dim vSpeller As Variant
Dim vSpellAlternatives As Object
'Dim oRet As SODispatchInterceptor
Dim args()
Set oSM = CreateObject("com.sun.star.ServiceManager")
Set aLocale = oSM.Bridge_GetStruct("com.sun.star.lang.Locale")
Set vSpeller = oSM.CreateInstance("com.sun.star.linguistic2.Spell Checker")
Set oPropertyValue = oSM.Bridge_GetStruct("com.sun.star.beans.PropertyV alue")
aLocale.Language = "en"
aLocale.Country = "US"
sWord = "Healthy"
Set vReturn = vSpeller.SPELL(sWord, aLocale, args())
MsgBox Join(vReturn.getalternatives(), vbCrLf)

thanks in advance
varinder
Mar 13 '09 #1
0 2939

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pater Maximus | last post by:
I want to use the MS Word spell checker from my Python program. I check the spelling a word at a time. It works fine for English but I can not force it to use French when I am using that language....
6
by: Tony Roost | last post by:
I have created a test VB.Net form that will use MS Word to check the spelling of text in an input box The test application runs without a problem and I quit the word application at the end of the...
4
by: Vish | last post by:
Is there a way to implement Spell Check Functionality into WinForm (for the text(s) contained/ entered in text box). What are the best ways to implement spell checking in a WinForms application? ...
3
by: Vish | last post by:
Hello, I am passing a string to a spell checking function which performs spell check using word objects. It works fine but even though i have said oWord.Visible = false; the word application...
2
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens...
8
by: Joe | last post by:
Hello All: Does anyone know of a spell checker that works with .NET? Any options will be welcome. TIA, -- Joe
9
by: John Zenger | last post by:
To my horror, someone pointed out to me yesterday that a web app I wrote has been prominently displaying a misspelled word. The word was buried in my code. Is there a utility out there that...
3
by: John Wright | last post by:
I have a VB program that will be generating documentation that will be stored for 60 years. This program really needs to have spell check and I read the post below on using spell check. I was...
9
by: ARC | last post by:
Hello all, I developed a tool a year or so ago for adding your own spell-checker to an access application. This is mainly for those using the runtime, as you can't distribute the spell-checker...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.