Bonjour à tous,
Concerne uniquement Windows.
La commande utilisée en VBA
Set ServiceManager = CreateObject("com.sun.star.ServiceManager")
qui permet de se connecter à LibreOffice, ne fonctionne pas avec la 
version LO Win 5.1.3.2 64 bits.
Elle fonctionne correctement avec les versions LO Win 5.1.1.3 64 bits  
LO Win 5.1.3.2 32 bits et LO Win 5.0.6
Il semble qu'il y ait une régression de LO Win 5.1.1.3 64 bits à LO Win 
5.1.3.2 64 bits
Pouvez-vous confirmer ?
Il suffit dans l'éditeur de Macros de créer et de lancer la macro :
Sub TestServiceManager
Set objServiceManager = CreateObject("com.sun.star.ServiceManager")
Set objCoreReflection= 
objServiceManager.createInstance("com.sun.star.reflection.CoreReflection")
Set objDesktop= 
objServiceManager.createInstance("com.sun.star.frame.Desktop")
Dim args()
Set objDocument= 
objDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, 
args)
End Sub
Vous obtiendrez soit la création d'un doc writer vierge soit un crash ...
Merci pour vos retours.
--
Didier Dorange-Pattoret
Tel : +33.6.32.38.87.02
http://www.dmaths.org
Soutenez le projet Dmaths : rejoignez le club ou faites adhérer votre établissement !
http://www.dmaths.org/documentation/doku.php?id=presentation:club
--
Envoyez un mail à qa+unsubscribe@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/qa/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 
supprimés
Context
- [fr-qa] Re: Suspicion de regression dans l'API avec CreateObject("com.sun.star.ServiceManager") pour LO Win 5.1.3.2 64 bits · Didier Dorange-Pattoret
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.