[Libreoffice-bugs] [Bug 113729] New: macro (autoopen) no more working in 5.4.2.2 LibreBase
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 9 07:46:29 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=113729
Bug ID: 113729
Summary: macro (autoopen) no more working in 5.4.2.2 LibreBase
Product: LibreOffice
Version: 5.4.2.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Base
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: dr.bertoldi at gmail.com
Created attachment 137630
--> https://bugs.documentfoundation.org/attachment.cgi?id=137630&action=edit
screeenshot of error
with the new version of LibreOffice I get an error message, not in Writer, not
in Calc, but in Base:
"BASIC runtime error. Property or method not found: supportsService"
and is highlighted the line "If NOT thisComponent.supportsService ("
com.sun.star.text.TextDocument ") Then" Apparently supportsService is no more
recognized in LibreBase (or, better, in Basic: I don't know!).
I refer to the whole macro:
sub vai_qui
If NOT ThisComponent.supportsService ("com.sun.star.text.TextDocument")
Then
Exit Sub
End If
oBookmarks = ThisComponent.getBookmarks ()
If NOT oBookmarks.hasByName ("here") Then
Exit Sub
End If
ViewCursor = ThisComponent.CurrentController.getviewCursor ()
Bookmark = ThisComponent.Bookmarks.getByName ("here") .Anchor
ViewCursor.gotorange (Bookmark, False)
ViewCursor = ThisComponent.CurrentController.getviewCursor ()
Bookmark = ThisComponent.Bookmarks.getByName ("here") .Anchor
ViewCursor.gotorange (Bookmark, False)
end sub
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171109/67a5c02a/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list