You can easily convert standard Arabic numbers to Roman numerals using HotDocs. For example, if you already have a Number variable and you want to display it as a Roman numeral, use the IX or ix format:
FORMAT( Num Var, "IX" )
Converting from Roman numerals to Arabic numbers is much more difficult, however. You must use a computation that can translate each letter to its corresponding value, then add or subtract these values as needed.
To better understand the following computation, note the values for each of the Roman numerals:
Roman numerals are converted from left to right by adding the value for each letter in the number. If a letter with a higher value comes after a letter with a lower value, the lower value is subtracted from the total instead of added. For example, in the number XIV, since I has a lower value than V, it is subtracted. Thus, to convert XIV to an Arabic number, the calculation is 10 - 1 + 5 = 14.