LibreOffice Writer Macro (?)

Can a macro run upon opening a document? Here is what I was hoping to achieve: I have a macro that saves the current record then opens LO Writer with the info from that record. I was hoping to have that document automatically print (with the default printer) then writer closes. Can someone assist me here?


W11 - LO

You can specify a macro when calling via command-line: Check this


I haven’t tried it, but I think that this can be a solution.