Import and export

Word reports

Reports from .docx templates: loan agreements, condition reports, crate labels, object lists. You open the export in the sidebar under Data In- & Export, section Export, Word reports.

This page describes how to use it. How templates are written is covered in the Word templates section.

First page of the generated loan agreement for the loan request Moderne 2026: borrower, venue and loan period, below them the loan items Rehe im Walde II by Franz Marc and Eselreiter by August Macke with object photo, date, technique, dimensions, inventory number and lender

A finished report: the loan agreement from the demo template for two loans

Procedure

  1. Choose a template, from the library or as your own .docx file.

  2. Moliri reads the template and detects the fields it uses, whether it runs over all objects and whether it needs images or files.

  3. Check the field binding. Unknown fields can be assigned to an existing one here.

  4. Check the advanced settings: merge behaviour, content controls, image resolution.

  5. Create Report. The result is one document or a ZIP archive with one document per object.

After the run, the dialog reports below the field binding how many reports were created. With Download last report again you can fetch the result once more without generating it again.

Export Word report dialog with the Leihvertrag (loan agreement) template after the run: at the bottom of the field binding the fields Maßangabe, Inventarnummer and Leihgeber, below them the message “22 of 22 reports created” and the buttons “Download last report again” and “Create Report”

Template library

Saved templates are grouped by categories, templates without a category at the end under Uncategorised. The search finds templates by name, category and owner, even with typos. An icon marks shared templates; for other people’s templates the name of the person who created them is shown.

Template library of the Word reports in Moliri with search field, the category Leihverkehr (loans) and the open menu of the Leihvertrag template

The menu of a template:

EntryWho may use it
EditOwner, status 9. Opens the template in the editor in the browser
Edit copyEveryone who can see the template
DownloadEveryone who can see the template
Rename, Change categoryOwner, status 9
Make public, Make privateOwner, status 9. Public means visible to all users of this instance
DeleteOnly the owner

The category is a free text field. When you change it, Moliri suggests the existing categories so that no duplicates arise from typos. An empty entry removes the category.

Field binding

Field names apply per project: $o[`Inventarnummer`] means the field that is called Inventarnummer in this project. A template from another project works here as far as the names match.

The Field binding lists every field of the template (Field in Template) with its status. A field that does not exist here carries the note This field is not available in the current project. It can be assigned to an existing field (Bind field to »…«). The template itself stays unchanged.

A binding can also be stored in the template: in the template editor, under Prüfung › Feldzuordnung (check › field binding), you choose an existing field for each missing one, per project. This choice presets the table during the export; the status then also shows from the template. Here you change it only for this one report; the template keeps its binding. See Assign missing fields per project .

Unknown fields do not hold up the export. Without a binding, the place in the report stays empty.

Merge behaviour

Whether one document or one per object is produced is decided by the template: if it runs over all objects, one document is produced. For a template per object, the Merge behavior setting determines how the individual documents are joined:

SettingEffect
Use template’s section behaviourDefault. Headers and footers, margins and break type follow the template
Merge without extra breakAppended directly to each other
Insert literal page break onlyA simple page break, section settings stay untouched
Insert section break (continuous)A new section on the same page
Insert section break (new page)Each object on a new page, with its own headers and footers
Insert section break (even page)Each object on the next even page
Insert section break (odd page)Each object on the next odd page
Do not merge, pack as ZIPOne file per object, together as a ZIP archive

For crate labels, Merge without extra break suits; for loan agreements, Insert section break (new page); for a hundred individual documents, the ZIP.

Citation style

If the template outputs an object field as a short or full citation, the advanced settings contain the Citation style section. Without a choice of your own, the style at the object field or that of the instance applies (As at the field or in the instance). See Citation style . The citation list produces a bibliography without a template.

Resolve content controls (plain text)

Templates can wrap their building blocks in content controls. With this switched on, they become normal text in the finished report. Switched off, they are kept, for instance if the report is to be edited further in Word.

If you set up a template in the template editor in the browser, you also save its defaults for this dialog there: resolving content controls, merge behaviour and the object mode (right-hand panel, Settings tab). The settings in the export dialog then apply to this one report.

Images

Image data is only loaded if the template uses images. Plain text templates run faster as a result.

The Image resolution is adjustable, default 220 DPI. Word compresses embedded images on its own when saving. For high-quality prints, switch off automatic image compression in Word after opening the file for the first time.

File name

<Vorlagenname>_<JJJJ-MM-TT>.docx (template name and date). For a ZIP, the archive has the same name with .zip, and the entries in it are called <Vorlagenname>_<Objekt-ID>.docx. Download last report again fetches the most recently generated report once more.

Further reading