Libreoffice Base - Importing/Exporting ODT into/from Form

I know how to export a form created in Base as an ODT to be used as a Standalone Form. However many a times I need to import the ODT file back into the ODB for various reasons. Is there an easy way of doing this?

Hi

It is possible with a macro. Just adapt the forms names & url (inside/outside the odb) in the main procedure in ImporterForm.odbattached.

The mainAndrew procedure shows how to proceed from creation to import.

I can not find specific references but the source of this code must be Andrew Pitonyak. Sorry for my imprecision on this point…

Regards

Thank you @pierre-yves-samyn . The utility works as expected.

I haven’t been clever enough to figure out what you have told me. Downloaded the file (a libreoffice.odb file, though not named ImporterForm.odb). Looked into it with Tools->Macros->Organize Macros->LibreOffice Basic and found the macro main and see mainAndrew.

Expecting to see instructions. Doesn’t happen. BASIC error when trying to run either.

Any spare clues for a novice?

Thank you – very kind. I will give it a try and report back.