<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - macro (autoopen) no more working in 5.4.2.2 LibreBase"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=113729">113729</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>macro (autoopen) no more working in 5.4.2.2 LibreBase
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dr.bertoldi@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=137630" name="attach_137630" title="screeenshot of error">attachment 137630</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=137630&action=edit" title="screeenshot of error">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>