I've inspected the helloworld object by using this macro :
Sub TestHelloworld
helloworld = createUnoService("org.openoffice.helloworld.Helloworld")
oInspector = createUnoService("org.openoffice.InstanceInspector")
oInspector.inspect(helloworld, "helloworldInspect")
helloworld.sayHello()
End Sub
I can see the method "string sayHello() =" in the list of methods. When
I generate the source code, here's what I get :
import org.openoffice.helloworld.XHelloworld;
public void codesnippet(Object <UNOENTRYOBJECT>){
XHelloworld xHelloworld = (XHelloworld)
UnoRuntime.queryInterface(XHelloworld.class, <UNOENTRYOBJECT>);
String sVariableName = xHelloworld.sayHello();
}
It seems that the method exists... However, I stell get the same error.
cheers,
Mikaël
On Thu, 2006-11-30 at 09:40 +0100, Cedric Bosdonnat wrote:
> Mikael De Bie a écrit :
> > Thank you very much for your help !
> >
> > I've followed the steps and manage to create a UNO package. :)
> >
> > But it still remains a problem : I've made the really simple macro :
> > Sub TestHelloworld
> > helloworld =
> > createUnoService("org.openoffice.helloworld.Helloworld")
> > print helloworld.sayHello()
> > End Sub
> >
> > And I get this error when calling the sayHello() method :
> >
> > BASIC runtime error. Property or method not found.
> >
> > Tough I don't think that I've missed something in the tutorial... My
> > files are the same as the ones described at
> > http://wiki.services.openoffice.org/wiki/JavaEclipseTuto
> >
> > Any idea ?
>
> No idea if you have the same files as the tutorial... Could you try to
> inspect the helloworld object with xray ?
>
> Cedric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]