Bonjour Didier
Ce code:
Sub Essai
oDesktop=createUnoService("com.sun.star.frame.Desktop")
Dim mNoArgs(0) As New com.sun.star.beans.PropertyValue
sUrl = "staroffice.factory:swriter"
oDocument=oDesktop.LoadComponentFromURL(sUrl,"_blank",1,mNoArgs())
End Sub
fonctionne avec OOo1.1.5 mais pas 2.0 Comment faire l'équivalent?
sUrl = "private:factory/swriter"
(scalc, sdraw, simpress, smath)
marche pour OOo115 et OOo200
je en connaissais pas la forme que tu proposes mais il ne me semble pas
que ce soit indiqué dans le guide du developpeur
en tout cas ceci marche
Laurent
--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]