A read-only property that returns a string containing the version number of a Microsoft Office InfoPath 2003 form.
expression.DocumentVersion
expression Required. An expression that returns a reference to the VersionUpgradeEvent object.
2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This property can be used only during the OnVersionUpgrade event.
In the following example, the DocumentVersion property of the VersionUpgradeEvent object is used to display the version number of an InfoPath form in a message box:
function XDocument::OnVersionUpgrade(eventObj)
{
XDocument.UI.Alert("The form version: " + eventObj.DocumentVersion +
"\nThe form template version: " + eventObj.SolutionVersion);
eventObj.ReturnStatus = true;
}