IEstimate.DisplayVersion Method

Displays the specified estimate version in a new window.
Function DisplayVersion( _ 
ByVal versionToDisplay As Integer
) As IEstimate
This language is not supported or no code example is available.
IEstimate DisplayVersion( 
int versionToDisplay 
)
This language is not supported or no code example is available.

Parameters

versionToDisplay
int

The version number to display. The current version has always number 0. Older versions are numbered from the lowest number (usually 1) for the oldest one. Newer versions have higher number.

Return Value

IEstimate

The newly open estimate.

Exception type Condition

QdvApiException

Couldn't save the current estimate before displaying the specific version.

Or couldn't display the specific version.

ArgumentOutOfRangeException

The versionToDisplay was zero, which is the current version.

Remarks
 
This method is used from the user API. The problems are reported with exceptions.

No user events are fired.

The current estimate is saved before the specified version is open. A new temporary file is created and open for the displayed version. It has limited functionality in GUI and in the API as well. You shouldn't modify the returned IEstimate object, because write operations could be unpredictable. You can, however, read the estimate properties, for example, the tmp file path in FullPath. If all you need to achieve is to have read-only access to an older version, you can rather use GetVersion method instead.

Version
 
Available since QDV 7.22.1026.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition