Hello.
I am trying to create a macro in python with access2base.
According to the documentation, when doing from access2base import *
, it should import the variable XSCRIPTCONTEXT
that references module uno (XScriptContext
).
Both XSCRIPTCONTEXT
in python and the XScriptContext
interface have the getDocument method, but if I try to use the method, for example, by running doc = XSCRIPTCONTEXT.getDocument()
after the import from access2base, I get the following error:
What am I doing wrong?
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded Jumbo