Using JavaBean modules in Jade.
Posted: Fri Aug 07, 2009 12:13 pm
by jburnby >> Thu, 26 Sep 2002 2:53:27 GMT
Hi all,
We are trying to set up Jade so we can use calls to Open Office using java bean components.
Does anyone know how I can actually call these components to Jade?
For example the below script works in visual basic:
'The service manager is always the starting point
'If there is no office running then an office is started up
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager") 'Create the Desktop
Set objDesktop= objServiceManager.createInstance("com.sun.star.frame.Desktop")
'Open a new empty writer document
Dim args()
Set objDocument= objDesktop.loadComponentFromURL("private:factory/swriter",_
"_blank", 0, args)
'Create a text object
Set objText= objDocument.getText
'Create a cursor object
Set objCursor= objText.createTextCursor
'Inserting some Text
objText.insertString objCursor, "The first line in the newly created text document."&_
vbLf, false
Thanks,
James.
Hi all,
We are trying to set up Jade so we can use calls to Open Office using java bean components.
Does anyone know how I can actually call these components to Jade?
For example the below script works in visual basic:
'The service manager is always the starting point
'If there is no office running then an office is started up
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager") 'Create the Desktop
Set objDesktop= objServiceManager.createInstance("com.sun.star.frame.Desktop")
'Open a new empty writer document
Dim args()
Set objDocument= objDesktop.loadComponentFromURL("private:factory/swriter",_
"_blank", 0, args)
'Create a text object
Set objText= objDocument.getText
'Create a cursor object
Set objCursor= objText.createTextCursor
'Inserting some Text
objText.insertString objCursor, "The first line in the newly created text document."&_
vbLf, false
Thanks,
James.