[Gambas-user] Gambas and OpenPffice document

Ivan Kern ivan-kern at ...308...
Wed Oct 10 08:30:54 CEST 2012


I do not know, I have not much experience with Gambas and not at all with
gb.xml.
It is easy with VB, the code looks like this:

Dim OSM, oDesk, oDoc, oTxt, OBK, oRng As Object 'OOo objects
Dim arg ()

Set OSM = CreateObject ("com.sun.star.ServiceManager")
Set oDesk = oSM.createInstance ("com.sun.star.frame.Desktop")
Set oDoc = oDesk.loadComponentFromURL ("file :/ / / C :/ tmp testdoc.odt /",
"_blank", 0, arg ())
Set oTxt = oDoc.Text

and I can edit  *. odt file without running OpenOffice.

Ivan

-----Ursprüngliche Nachricht-----
Von: RICHARD WALKER [mailto:richard.j.walker at ...247...] 
Gesendet: Mittwoch, 10. Oktober 2012 02:21
An: mailing list for gambas users
Betreff: Re: [Gambas-user] Gambas and OpenPffice document

Would the gb.xml stuff make the task any easier? Just askin' - This might be
something I would like to try some time.

Richard

----------------------------------------------------------------------------
--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly what is
happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at
no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list