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
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" )
?
---
> 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
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
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
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
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
--
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