[libreoffice-users] loadComponentFromURL Document Type Detection Failure

2018-09-08 Thread dCipher
Hi I have been using the loadComponentFromURL for years with automation but recently it has given errors saying that the documentation type detection failed. So I wondered if there is a property I could set that indicates the document type. I have found a list of document types for SCalc but can

Re: [libreoffice-users] loadComponentFromURL into _top frame at startup crashes LO

2015-05-31 Thread X Roemer
One irritating thing I found out: Although the listener is called with "onLayoutFinished" the desktop still doesn't have an ActiveFrame. It seemes to be set afterwards. When I create a component enumeration, I can see the upcoming component, but it isn't set yet. Any ideas, how to receive an

Re: [libreoffice-users] loadComponentFromURL into _top frame at startup crashes LO

2015-05-31 Thread X Roemer
sorry, forgot some code in the listener.m it should be: class Doc_Event_Listener(unohelper.Base,XDocumentEventListener): def documentEventOccured(self,ev): if ev.EventName == 'OnLayoutFinished': if document.Name == '': document.Name = 'xxx'

[libreoffice-users] loadComponentFromURL into _top frame at startup crashes LO

2015-05-31 Thread X Roemer
Hi, this post is somehow related to "open files automatically", but a bit more specific. http://nabble.documentfoundation.org/open-files-automatically-td4149584.html When I load a component in an already loaded LO, following code works inside an extension: URL="private:factory/swriter" desk

Re: [libreoffice-users] loadComponentfromUrl

2012-10-04 Thread Tom Davies
efore free) but i suspect you have already gone through those.  Regards from Tom :)  > > From: Walther Koehler >To: users@global.libreoffice.org >Sent: Thursday, 4 October 2012, 17:42 >Subject: [libreoffice-users] loadComponentfromUrl >

[libreoffice-users] loadComponentfromUrl

2012-10-04 Thread Walther Koehler
Hi, When I open a document in writer (by menu/open or recently used or new), it opens a frame with full window size. bingo. When I open the same document via a basic makro using loadComponentfromUrl(sURL, "_blank", 0, args()) it opens in a frame maximised vertically but not horizontally. All fu