XpressDox News

Select templates using a master template

Selection of multiple templates to be run can be done by the user using the XpressDox explorer, but the template author can also control the selection of templates using a master template with document-selection logic built into it.

go to article

Version 3.4.1 (2011-01-22)

The <<ChooseFromFile()>> command includes a new parameter which is a prefix to be applied to the data element names which are defined in the file.  This enables a template author to use the same file to choose different data elements. <<MergeTemplate()>> will accept a hard-coded file name (in quotes), or a data element name (the […]

go to article

Testing parts of a string

1. The StartsWith function is used to test whether a string starts with a given string: <<If(StartsWith(Surname,'van ')>><<Title>> <<Surname>> is probably of Dutch descent.<<End()>> <<If(StartsWith(Surname,'van ')>><<SetV('LastPart',substring-after(Surname,'van '))>><<End()>> In previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still recognize this command. 2. EndsWith tests the end of a string: <<If(EndsWith(Surname,'-Smith')>> […]

go to article

The MergeTemplate Function

When XpressDox encounters a «MergeTemplate()» function while running a template, it will keep the template name (which is passed to the function) in a list, called the Templates to Merge List.  After completing the main template, all the templates in the Templates to Merge List will then be run, using the same data set as […]

go to article

Version 3.3.2 (2011/01/06)

A bug which caused a conflict between <<Script()>> commands and <<BaseTemplate()>> has been fixed. At the same time, nesting of <<UseScript()>> within a <<Script()>> … <<ScriptEnd()>> is now supported The sample collections process demonstration templates have been updated, and can be downloaded.

go to article

The RunWordMacro Command

This command enables the template author to cause XpressDox to run a Word macro after the template has been merged. <<RunWordMacro(AlignParagraphs,TranslateDoubleQuotes)>> The above command will cause the two named macros (i.e. AlignParagraphs and TranslateDoubleQuotes) to be run after the template has been merged. The Delay Option XpressDox needs to accommodate the changing world, and in […]

go to article

The RunTemplates Command

The <<RunTemplates>> command enables the template author to specify that more than one template should be run. <<RunTemplates(Letter,Contract,DebitOrder,FileCover)>> The four templates Letter.xdtpx, Contract.xdtpx, DebitOrder.xdtpx and FileCover.xdtpx will be run, one after the other.  The user will be presented with an interview for each template being run, but each interview will be pre-populated with data captured […]

go to article

The IncludeTemplate Command

An entire template file can be inserted into the document using the <<IncludeTemplate>> command. The included template can contain Fillpoint definitions and even issue further IncludeTemplate commands.  It is treated thereafter exactly as if the contents of that included template had been typed directly into the including template. Example: The description of the parties is: <<IncludeTemplate(PartyDescription)>> The […]

go to article

Search for a file using the Explorer

The XpressDox Explorer does not contain an explicit “Search” function.  Nonetheless, you can search in the currently open folder for a file, using the Windows file system’s wild card syntax. The example below demonstrates how the wild card string *letter*.xdtpl will list all (and only) XpressDox templates with the string “letter” in the file name […]

go to article