How do I create a print form macro button [closed]
I am trying to create macros in LibreOffice Base but of course the macro recorder is limited in base and will not switch forms and such. I don't have the time to learn Basic programming -- I'm more interested in learning Python if I had to choose. All I need is the code to go from a form to a report and print it. Even if I could just get the code to open a form. I had tried the following from an example I saw on You-tube but got an error saying "Basic Runtime Error: Object Variable Not Set"
Sub OpenForm_1 const sNewDocumentName="Cheque Writing Form" oNewFormDocument=ThisDataBaseDocument.FormDocuments.getbyname(sNewDocumentName).open end sub
Can someone help me fix the above macro, OR is there a collection of already written macros somewhere that I can use/modify??