I’m running the latest version of Libre Office (7.4.6.1) and I’ve read a lot of the responses to this issue and as advised in the Base Guide, used their sample code *excerpt)
…
Sub Main
Dim oDoc As Object
Dim oDrawpage As Object
Dim oForm As Object
oDoc = thisComponent
oDrawpage = oDoc.drawpage
oForm = oDrawpage.forms.getByName(“MainForm”)
End Sub
Even before I start develooing the rest of the macro, I get a dialogue showing
"BASIC runtime error. Property or method not found: drawpage"
I've tried moving the code to different modules, renaming forms, but as it gets to the drawpage declaration I get the error.
I've also looked at the various sample db's provided as well as built new ones. It just doesnt work, so I'm assuming there is perhaps a module that needs to be installed or some other setting I'm missing?
Thanks.