OnStatus event (_ILEADDicomPrintSCUEvents dispinterface)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

void OnStatus(PrintScuStatusEnum Status, long OperationStatus);

Overview

Refer to Print Management SCU.

Remarks

The OnStatus event is fired to indicate the status of the Print SCU itself.

As an example, when the Create method of the ILFilmSession interface is called to create a Film Session, and assuming that the method will succeed, the OnStatus event will be fired twice: The first time with Status set to PRNSCU_STATUS_SEND_CREATE_FILM_SESSION_RQ and OperationStatus set to 0, and the second time with Status set to PRNSCU_STATUS_RECEIVE_CREATE_FILM_SESSION_RSP and OperationStatus set to COMMAND_STATUS_SUCCESS.

When the parameter Status is one of the PRNSCU_STATUS_xxx_RSP status values, the parameter OperationStatus is determined as follows:

If the status code specified in the response of the Print SCP is either a Success or Warning status code, OperationStatus will be set to COMMAND_STATUS_SUCCESS. The actual status code can be obtained from the LastOperationStatus property; if it is really a Success status code, the property will specify COMMAND_STATUS_SUCCESS, otherwise, it will specify the Warning status code.

If a Failure status code is specified in the response of the Print SCP, OperationStatus will be set to that Failure status code. The same status code would be specified by the LastOperationStatus property.

See Also

Elements:

LastOperationStatus property

Topics:

DICOM Print Management SCU: Miscellaneous