Re: COM OLE Automation bridge; property Name not supported

2014-08-29 Thread Peter Eberlein
Hello Jörg, Am 29.08.2014 10:17, schrieb Jörg Schmidt: From: Peter Eberlein [mailto:pet@refofd.verwalt-berlin.de] because aoo cannot open all Word docs without crashing (https://issues.apache.org/ooo/show_bug.cgi?id=125419), I wanted to let do WinWord the job. I need to know the names of

Re: COM OLE Automation bridge; property Name not supported

2014-08-29 Thread Mathias Röllig
XRay is the better way, but it's a COM object, which have all the same properties and methods (e.g. invoke(), hasProperty()). hasProperty("Name") returns false. O.K. But reading at the site behind your posted link; what returns hasMethod( "Name" ) ? ---

Re: COM OLE Automation bridge; property Name not supported

2014-08-29 Thread Jörg Schmidt
> From: Peter Eberlein [mailto:pet@refofd.verwalt-berlin.de] > because aoo cannot open all Word docs without crashing > (https://issues.apache.org/ooo/show_bug.cgi?id=125419), I > wanted to let > do WinWord the job. > > I need to know the names of all bookmarks. > So StarBasic looks like

Re: COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Peter Eberlein
Moin Mathias, Am 29.08.2014 08:23, schrieb Mathias Röllig: Good morning Peter! Having no Windows and no Word I cannot test your code. Try: bookmark = wordDoc.Bookmarks(i) GlobalScope.BasicLIbraries.loadLibrary( "Tools" ) writeDBGinfo( bookmark ) If there is nothing go step by step writeDBGinf

Re: COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Mathias Röllig
Good morning Peter! Having no Windows and no Word I cannot test your code. Try: bookmark = wordDoc.Bookmarks(i) GlobalScope.BasicLIbraries.loadLibrary( "Tools" ) writeDBGinfo( bookmark ) If there is nothing go step by step writeDBGinfo( wordDoc ) to find the right properties. Regards, Mathia

Re: COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Peter Eberlein
Hi Mathias, it's only a typo, meant wordDoc.Bookmarks(i) the error "property or method not found" occurs in line msgbox bookmark.Name Regards Peter meant Am 28.08.2014 18:03, schrieb Mathias Röllig: Hi Peter! If you using the right syntax (I don't know): For i = 1 To wordDoc.Bookmarks.Co

Re: COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Mathias Röllig
Hi Peter! If you using the right syntax (I don't know): For i = 1 To wordDoc.Bookmarks.Count ^^^ bookmark = doc.Bookmarks(i) ^^^ msgbox bookmark.Name 'fails 'yes, it must 'Option Explicit enabled? Regards, Mathias --

COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Peter Eberlein
Hi, because aoo cannot open all Word docs without crashing (https://issues.apache.org/ooo/show_bug.cgi?id=125419), I wanted to let do WinWord the job. I need to know the names of all bookmarks. So StarBasic looks like this: wordInstance = CreateObject("Word.Application") wordDoc = wordInstan