views:

222

answers:

3

It is possible to use Microsoft Word to spell chek an arbitrary document.

What I want is to use OpenOffice.org to do the same.

Is it possible? How?

A: 

Its not very likely. OpenOffice is written in Java and you want to use VB6. Unless you can find a Java->VB6 bridge it won't happen very effecently. [relatively (bridges aren't known for their speed)]

monksy
What if was working with Java. Does OpenOffice.org provides a way to use his internal spell checker?
Daniel Silveira
I have no idea about this. There is Java code within their project to use this. Worse case senario you could strip it out. Best case (which is most likely) they seperated the functionality into a component.
monksy
@Daniel: There are OpenOffice-Bindings for Mono and I think I've seen some for Python, so I'm very sure that there are bindings for Java, too.
Bobby
A: 

Google turns up this article showing how to use the OpenOffice spellchecker from C#.

Disclaimer: I haven't tested this (or actually read the whole article).

You could write a COM-visible C# (or VB.Net) component, and call it from VB6.

MarkJ
+2  A: 

The OpenOffice Developer's Guide is here.

OpenOffice has COM bindings which you can read about here.

The API reference is here

The linguistic2 module is what you interested in and has documentation on the spell checker.

My opinion that it is rather involved to get this going and only of use if you are planning to have OpenOffice as part of your solution. I would look at the various 3rd party offering for VB6 and spell checking.

RS Conley