Text Box

Basic template component enables you to put dynamic text into your document.

Configuration

Click on Text Box button in editor's toolbar and configuration window will appear. Once confirmed, Text Box will be placed in cursor's location. 

Data (expression)

Define simple text field name or formula using expression language to be evaluated and print resulting value to a document.

Examples:
Surname - single field expression to put surname in place
num(Amount, 0, 2) + " €" - expression to print Amount with 2 decimal places and trailing euro sign

Type

Define type of input data to be printed as text into document

  • Plain text - plain text with support for new line character '\n'
  • HTML - text with HTML markup
  • Date - print datetime value in Date format

Date format

When Type is set to Date, following date string is used to format datetime value to text in document. You can use following letters:

  • y = year   (yy or yyyy)
  • M = month  (MM)
  • d = day in month (dd)
  • h = hour (0-12)  (hh)
  • H = hour (0-23)  (HH)
  • m = minute in hour (mm)
  • s = seconds (ss)
  • S = milliseconds (SSS)
  • z = time zone  text (e.g. Pacific Standard Time...)
  • Z = time zone, time offset (e.g. -0800)

Examples:
yyyy-MM-dd 2009-12-31
dd-MM-YYYY 31-12-2009
yyyy-MM-dd HH:mm:ss 2009-12-31 23:59:59
HH:mm:ss.SSS 23:59.59.999
yyyy-MM-dd HH:mm:ss.SSS 2009-12-31 23:59:59.999
yyyy-MM-dd HH:mm:ss.SSS Z 2009-12-31 23:59:59.999 +0100

Example Value

This value is displayed in editor instead of Data (expression). Very useful when complex formula results in short value and it's breaking view of template while designing.

Font

Change font size for resulting text.

Color

Select font color of resulting text.