Template Types

Each template variable requires a “Type” which defines how the information is displayed in the output Excel file.

TypeHow StoredStyle
stringstring valueleft aligned
numberstring valueformat integer number as text, right aligned
number!  native Excel valuegeneral integer number format, right aligned
floatstring valueformat floating point number as text, right aligned
float!native Excel valuegeneral floating point number format, right aligned
float2string valueformat number as text, right aligned
float2!native Excel valuenumber format “0.00”
float4string valueformat number as text, right aligned
float4!native Excel valuenumber format “0.0000”
datestring valueformat as text, left aligned
date!native Excel valueformatted as “yyyy-mm-dd”, left aligned

Final Data Conversion

When the variable data is written to the template file, the second data conversion (and presentation) is performed.

⚠️Note that the “!” styles should not generally be used because native values might not be presented properly. (There are cases, however, where the receiver may request this format.)

For example, a “price” source field would not have trailing zeros if displayed as “number!” (i.e. 4.000 would become 4). It would be up to the receiver to process that data properly.

The “native” numeric styles will, however, use the Excel “NumberFormat” to set the number of Decimal places for display. This is identical to the Excel Format Cells dialog as shown below:

format cells

Revised: 2020-12-05