The NEW XpressDox Version 14 is now available!

Edit Content
Click on the Edit Content button to edit/add the content.

XpressDox Support

Use Chr to make an apostrophe

Suppose you want to set up a variable (called ‘Party’)  to contain either Defendant or Plaintiff, depending on PartyType and then a variable containing the possessive case of that  – i.e. the value should be “Defendant’s” or “Plaintiff’s”.  The apostrophe is going to give trouble. Here’s how to do it. 

Read More »

The ListDelimiter Function

List and CommasAndList are used to produce delimited lists either of repeating data elements (List) or data elements (or variables) containing a concatenated delimited list (CommasAndList). ListDelimiter provides similar capabilities, but more under the control of the template author. A typical example would be where a repeater containing clauses needs

Read More »

The AppendVr and PrependVr Functions

The AppendVr and PrependVr functions provide less cumbersome syntax for appending or prefixing values to variables than using SetVr to do this. Prior to these two functions, suppose you wanted to concatenate a pipe symbol (|) and a data element value (data element Name) to the end of a variable

Read More »

Version 4.5.2 (2012-10-26)

2012-10-22 Version 4.5.2 The command «IncludePicture()» will include a graphic from a file (.jpg, .png, etc.) into the document at the point it is encountered in the template.  InsertPicture will do the same, but can be provided with the name of a file which is constructed during the assembly of

Read More »

Version 4.4.0 (2012-09-20)

2012-09-19 Version 4.4.0 The template converter (to convert templates constructed for other document assembly systems) has been improved.  In particular, there is now an analysis tool which makes construction of the “FieldConvertDictionary” file much easier than it was. If the template has a Word Table of Contents in it, then

Read More »

The FlagTOCToBeUpdated Command

Note that with effect from Version 6.4.1 of XpressDox, the functionality of this command is exactly the same as for the UpdateFields command. When a template contains a Word Table of Contents (TOC), that TOC can sometimes become invalid when conditional assembly in the template causes some of the constituents

Read More »

The DefineSetAllGroup Command

There is a requirement in some templates for the interview user to be able to check a checkbox  and have a set of check boxes all checked –  a so-called “Check All” feature. A similar requirement applies to a set of radio button lists, which must all have a value

Read More »

The RunAsHugeTemplate Command

There is a feature (perhaps a bug) in Microsoft® Office that prevents Add-ins like XpressDox from working with very large documents.  This affects XpressDox when a template being merged ends up being about 400 or more pages long. It only occurs when the template is run inside the XpressDox desktop

Read More »

The SetWebInterviewSize Command

This command allows the template author to set the size (width only – height grows dynamically as required) of the web interview when the interview is integrated into a web page. Possible values for InterviewSize are: Small, Medium, Large and ExtraLarge. An example would be: «SetWebInterviewSize(Medium)» For more information about integrating an interview

Read More »

The CentsToCurrency and CurrencyToCents Functions

Probably the best way to perform arithmetic on money values in XpressDox is to reduce all currency to integer values (e.g. Dollars to cents, Pounds to pence, etc), perform the arithmetic and then render the value back to the currency value.  The aim is to reduce the possibility of rounding errors creeping

Read More »

Version 4.3.7 (2012-08-14)

2012-08-13 Version 4.3.7 Many bugs and irritations have been fixed. The target of OnExitSet can now be lower in the XML hierarchy (i.e. in a repeating element) than the trigger element, and all such repeating targets are affected. The interview construction time has been reduced by about 25%.

Read More »

The Select/Case/Default Commands

The Select, Case and Default construct is especially helpful where otherwise a series of «Else()» commands nested inside «If()» commands would be necessary. This construct is analogous to the Select/Case/Else commands in VBA ( and the switch/case/default construct in C# and similar constructs in other languages). An example would be

Read More »

Version 4.3.5 (2012-07-23)

2012-07-23 Version 4.3.5 Various minor bugs and unpleasantnesses have been fixed. The bug in the implementation of HzGroup where a condition applied to only one data element in the group was applied to the whole group has been fixed. There was a bug (in version 4) in the InsertFormattedText command

Read More »

The ValueIsEmpty Function

Normally, the following test would result in “Yes it is empty” if the value of Name were an empty string: «If(Name = ”)»Yes it is empty«Else()»No it is not empty«End()» However, in situations where the XML data to be used in the template are sourced not from the interview, but from, for

Read More »

The Guid Function

This function returns a new GUID (Globally Unique Identifier) whenever it is called. The usages for GUIDs are discussed in various places, a starting point would be this Wikipedia article. An example of usage in XpressDox would be the following, which sets the value of a data element named Id

Read More »

Version 4.3.4 (2012-07-12)

2012-07-12 Version 4.3.4 Some data source bugs (involving relative paths in the connection string) have been fixed. You can now verify a configuration for operation in the Cloud before uploading it. The HzGroup and Rule commands on a repeating item prevented the interview from closing.  This is fixed.

Read More »

Version 4.3.2 (2012-07-09)

2012-07-09 Version 4.3.2 Some bug-fixes have been applied, and some new features added: Handling of highly normalised data bases has been improved.  Single element collections in data sources can have sub-collections which can be either single or multi-element collections. With 4.3.1 if an «End()» command was the only text (no

Read More »

The TemplateName Function

Use this function to put the file name of the currently running template into the assembled document. For example: The name of this template file is «TemplateName()» To include the extension and full file path of the template, use the following: The name of this template file is «TemplateName(‘true’,’true’)»

Read More »

The InterviewFont Command

This command will set the font for all controls, captions, headings, footings, etc., on the interview. One drawback of the current default font (which is the Microsoft default font for user interfaces) is that it is sometimes just a tad too small. Particularly when it comes to commas and full-stops

Read More »

The HzGroup Command

The default layout format for an interview is for the controls in the interview to be arranged vertically, one under the other. This behaviour can be modified by use of the HzGroup command (the name standing for ‘HorizontalGroup’). For instance, the command «HzGroup(Title,FirstNames,LastName)» would cause the controls for data elements Title, FirstNames and

Read More »

The Width Command

Before the advent of the Width command, the widths of controls on the interview would be variable, as the right hand side of the control is a fixed distance from the edge of the interview form.  This gives the interview a uniform look, but this can become tedious to look at,

Read More »

The SetWebInterimSaveButton Command

This command will enable a cloud user to save a partially completed interview without generating a merged document. The command provides text for the button which will appear on the interview screen, and also a URL to which the partially completed data set will be sent. The data will be in XML

Read More »

The CommasAndList Function

This function is very similar to the List command. The difference is that List operates on repeated data elements (e.g. the names of parties), whereas CommasAndList operates on a list which is contained either in one data element, or, more typically, in a variable constructed out of other values. Suppose

Read More »

The ChooseUsingTimePicker Command

This command is a variant of the CaptureDataElement command which causes a “time picker” control to be placed on the interview to help the user in choosing a time of day correctly. «ChooseUsingTimePicker(AppointmentTime)» As with all the “Choose…” commands, the ChooseUsingTimePicker command will NOT cause the chosen time of day to

Read More »

The FormatTime Function

If a value has been captured as a time of day, then it can be formatted and inserted into the merged document in a format desired by the template author.  For example, a user may have captured a time in a 24 hour format, but it can be printed in

Read More »