Skip to main content

Document Generation (Formatted Export)

The Document Generation feature allows you to generate beautifully formatted documents such as quotes, shipping labels, invoices, or asset reports directly from your AnyDB records.

You can define your own .docx or .xlsx templates with special tags that automatically populate with data from a record.

Example Output

The generated file can be downloaded as .docx or directly exported to .pdf.

Sample Sales Quote Output

Each placeholder in your document ({FieldName}) is dynamically replaced with the corresponding record field, producing a professional report, quote, or label instantly.

Use Cases

DepartmentExample OutputDescription
Sales & FinanceQuotes, InvoicesGenerate branded sales documents instantly
Operations & LogisticsShipping LabelsPrint directly from asset or order records
HR & AdminEmployee LettersAuto-generate offer letters or certificates
Inventory ManagementStock ReportsExport product summaries to Excel
Project ManagementJob SheetsPrint or share structured task documents

Supported Formats

FormatDescription
.DOCXWord template supporting text, tables, and placeholders
.XLSXExcel templates for tabular reports and calculations
.PDFOptional export of generated file as PDF

Overview

Formatted Export is configured by the database admin inside Manage Database → Formatted Export.

Each export option links a record type (template) with a corresponding document file. Once configured, users can generate the formatted documents from the More Options menu within any record.

FeatureDescription
Template TypesWord (.docx) or Excel (.xlsx)
Setup ByDatabase Admin
UsageAvailable for all records of the selected record type
Output.docx or .pdf (automatically populated with record data)
Use CasesQuotes, Invoices, Shipping Labels, Asset Reports, Certificates, and more

Setting Up Formatted Export

Step 1: Prepare your templates for your record

  1. Create a .docx or .xlsx file using Microsoft Word, Excel, or compatible software.
  2. Insert placeholder tags (e.g., {Name}, {Date}, {A4}) where you want dynamic data to appear.
    Refer to the Template Tag Reference section below for tag syntax.
  3. Save and upload the file to anyd AnyDB database folder in your database.

Step 2: Open the Formatted Export Settings

  1. Navigate to Manage Database for your selected database.
  2. Choose Formatted Export from the left panel.

Formatted Export Settings Screen

You’ll see a list of all configured export templates. Each export is linked to a specific record type (e.g., Device Asset).

Step 3: Upload a Template File

  1. Click + Add to create a new export.
  2. Choose the record template (e.g., Device Asset).
  3. Upload your .docx or .xlsx file containing special data tags (for example, {{Name}}, {{Order.Number}}, or {{Date}}).
  4. Save your changes.

Edit Formatted Export Dialog

The file must be uploaded inside the database’s folder so that AnyDB can use it for dynamic exports.

Step 3: Configure Associations

Each export can be given a name and linked to a record template.
A record can have multiple export definitions — for instance, one for a Sales Quote, another for a Delivery Note.

ExampleRecord TemplateExport File
Shipping LabelDevice AssetShippingLabelv2.docx
Asset JournalDevice AssetAssetJournal.docx

Generating a Formatted Export

Once the setup is complete, any user can generate a formatted file directly from a record.

  1. Open the desired record.
  2. Click the More Options (⋮) button at the top right.
  3. Select Download Formatted → [Your Template Name].

Download Formatted menu option

AnyDB will automatically fill in your document template with data from the record.

Tips and Best Practices

  • Use descriptive export names like Sales Quote or Asset Journal for clarity.
  • Keep template files inside a folder called templates for easy access.
  • You can define multiple exports for the same record type to handle different document layouts or audiences.

Template Tag Reference

Templates for formatted exports use placeholder tags (inside { }) to pull values dynamically from AnyDB fields.

Placeholder Tags

{field_name} or {position_name}

  • The fields can be referred using thier Position such as A1, A2 etc or using thier Label such as "Name", "Total"
  • The format of the field will be used when rendering it for output. For example, if the field format is "Currency" and set to use USD, then the generated document will have currency formatting style. Fields with Date format will use Display values specified.

Examples:

TagDescriptionExample Output
{Name} or {A5}Inserts the record’s primary name or titleNASA
{CreatedAt}Date when the record was created11/07/2025
{Total}Numeric or calculated total value$13,415,076.00

Output Children Data using Loops tag

 {#attachment_position} starts a child loop block
{child_field_name} or {child_position_name}
{/} or {/attachment_position} ends it.
  • Loops are useful to output dynamic data from children records.

Example:

Say you have a Parent Record with the following fields

PositionLabelFormatDescriptionExample data
A1NameGeneralThe name of the person.John.
A2AgeNumberThe age of the person23
A3Monthly Sale RecordAttachmentsThe children records

Lets assume that the Parent has three child records attached. Child Record (Monthly Record) with the following fields -

PositionLabelFormatDescriptionExample data of each record.
D1Date of SaleDateDate when sale was made01/01/2025, 02/01/2025, 03/01/2025
D2Quantity SoldNumberTotal number of items sold20, 50, 200
D3Sale PriceCurrencySale value70, 150, 500

In order to display data from each of the child record and render it in for export Using the following will output three lines (notice the use of Position and Label to refer to children cells)

{#A3} {D2} was sold on {D1} for {Sale Price} {/}

Output may look like (Depending on the display format of the cell).

  • 20 was sold on 01/01/2025 for $70
  • 50 was sold on 02/01/2025 for $150
  • 200 was sold on 03/01/2025 for $500

Example

This section shows an Example AnyDB record and a Formatted Export Template document and its output. Example AnyDB Record

A Formatted Export Template. Locate the position and Labels used in this document in the AnyDB record Example Formatted Export Doc

Generated output Sample Sales Quote Output

Summary

Formatted Export brings automation and flexibility to document generation in AnyDB.

With just a few clicks, you can produce branded, structured, and data-driven documents straight from your records, saving time and eliminating manual formatting work.