Wizards Invoice Properties Object Properties Document Sections Document Layers Text Captions Text Formatting Label Resizing Section Resizing Images and Logos Grid and Margins

Text Formatting

Custom Formatting

Data that is displayed on an invoice in PennyPerfect can have a custom format specified in the template, as part of the caption. The caption of a label is written as {data|format} e.g. {Start Date|ddd dd mmm yyyy}.

The format is optional i.e {Start Date} is OK. If no format is specified or its left blank then a default format is used.

Multiple different formats can be specified within a single caption e.g.
'{Start Date|ddd dd mmm yyyy} {Start Time|h:nnAMPM} to {End Time|h:nnAMPM}'

Date Formatting

The easiest way to explain is with these examples, all of which demonstrate how the date 'Sunday 12 August 2007' would display with various formats.

FormatDisplay
dd/mm/yyyy12/08/2007
d m yy12 8 07
dd-mmm-yyyy12-Aug-2007
ddd dd mmm yySun 12 Aug 07
dddd dd mmmm yyyySunday 12 August 2007

Time Formatting

These formats demonstrate how various times are displayed in specific formats.

TimeFormatDisplay
4:17amh:nn4:17
4:17amhh:nn04:17
4:17amhhnn0417
4:17amh:nnAMPM4:17am
2:30pmh:nn14:30
2:30pmh:nnAMPM2:30pm
2:30pmhh:nn14:30

Number Formatting

These formats demonstrate how various numbers are displayed in specific formats.

NumberFormatDisplay
12.470.0012.47
12.470.012.5
12.47#,##0.0012.47
12345.67#,##0.0012,345.67
12345.67£#,##0.00£12,345.67

Special Formatting

There are two special formats that can be used for numbers, which are '[Money as words]', and '[Number as words]'. These display the entered number as written words rather than digits. [Money as words] inserts pounds and pence into the phrase at the appropriate point.

NumberFormatDisplay
12.47[Number as words]twelve
123.47[Money as words]one hundred and twenty three pounds forty seven pence

Text Case

The property Text Case affects how a label is displayed. It is a property of the whole label and not one piece of data i.e. {Start Date|Upper Case} is not allowed.

The available cases are;

Text CaseResult
no changeThis is the default value. The text is displayed as it has been entered into PennyPerfect.
UPPER CASEThe text is displayed in upper case e.g. PLEASE PAY WITHIN 10 WORKING DAYS.
lower caseThe text is displayed in lower case e.g. please pay within 10 working days.
Initial CapitalsThe text is displayed with the first letter of each word in upper case e.g. Please Pay Within 10 Working Days.