Thanks for answer.
But i need open url in current swriter not blank page. so "_blank" is
not suitable for me.
On 5.5.2015 11:05, Salva open-office.es wrote:
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org
|