openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Salva open-office.es" <sa...@open-office.es>
Subject RE: macro crash problem
Date Tue, 05 May 2015 08:05:21 GMT
Hi

Function OpenDoc( cPathFile As String ) As Object
'---------------------------------------------------------------------------
-----------------
   cPathFile = ConvertToURL(cPathFile)
   OpenDoc = StarDesktop.LoadComponentFromURL(cPathFile, "_blank", 0,
Array() )
End Function


SLV-es                                      
Administrador de open-office.es
Administrador del Foro Oficial en Español de Apache OpenOffice
Síguenos en    Facebook    Twitter    Tuenti    Google+     identi.ca


-----Original Message-----
From: Engin Oz [mailto:o.enginoz@gmail.com] 
Sent: Monday, May 04, 2015 1:20 PM
To: api@openoffice.apache.org
Subject: macro crash problem

     When i run this macro 4 or 5 times application crash and close? 
what can i do for this problem.

     dim document    as    object
     Dim Props(0)     As New com.sun.star.beans.PropertyValue
     document   = ThisComponent.CurrentController.Frame

     document.loadComponentFromURL( 
ConvertToURL(strDosyaYol(oListBox.getSelectedItemPos())), "_self", 0, 
Props() )

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org


---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
http://www.avast.com


---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org


Mime
View raw message