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?

Thanks

W11 - LO 7.3.5.2

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

Hi,

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

Bye

D