LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OnPrinterReport Method
See Also 
Leadtools.Dicom Namespace > DicomPrintScu Class : OnPrinterReport Method



eventTypeID
Specifies the Event Type ID which indicates normal, warning, or failure conditions. Possible values are:
Value Meaning
1 Normal condition (Event Type Name = Normal). In this case, the parameter reportInformation will be a null reference (Nothing in Visual Basic).
2 Warning condition (Event Type Name = Warning).
3 Failure condition (Event Type Name = Failure).
reportInformation
A DicomPrinterReportInformation object that specifies printer information in warning and failure conditions. This can be a null reference (Nothing in Visual Basic) and it is always a null reference if the parameter eventTypeID is equal to 1 (normal condition).
eventTypeID
Specifies the Event Type ID which indicates normal, warning, or failure conditions. Possible values are:
Value Meaning
1 Normal condition (Event Type Name = Normal). In this case, the parameter reportInformation will be a null reference (Nothing in Visual Basic).
2 Warning condition (Event Type Name = Warning).
3 Failure condition (Event Type Name = Failure).
reportInformation
A DicomPrinterReportInformation object that specifies printer information in warning and failure conditions. This can be a null reference (Nothing in Visual Basic) and it is always a null reference if the parameter eventTypeID is equal to 1 (normal condition).
Called when a printer status report is received from the Print SCP.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub OnPrinterReport( _
   ByVal eventTypeID As Integer, _
   ByVal reportInformation As DicomPrinterReportInformation _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim eventTypeID As Integer
Dim reportInformation As DicomPrinterReportInformation
 
instance.OnPrinterReport(eventTypeID, reportInformation)
C# 
public virtual void OnPrinterReport( 
   int eventTypeID,
   DicomPrinterReportInformation reportInformation
)
C++/CLI 
public:
virtual void OnPrinterReport( 
   int eventTypeID,
   DicomPrinterReportInformation^ reportInformation
) 

Parameters

eventTypeID
Specifies the Event Type ID which indicates normal, warning, or failure conditions. Possible values are:
Value Meaning
1 Normal condition (Event Type Name = Normal). In this case, the parameter reportInformation will be a null reference (Nothing in Visual Basic).
2 Warning condition (Event Type Name = Warning).
3 Failure condition (Event Type Name = Failure).
reportInformation
A DicomPrinterReportInformation object that specifies printer information in warning and failure conditions. This can be a null reference (Nothing in Visual Basic) and it is always a null reference if the parameter eventTypeID is equal to 1 (normal condition).

Example

For an example, refer to DicomPrintScu.Associate.

Remarks

This callback method is called whenever the Print SCU receives a report from the Print SCP about the changes of the printer status. If any of the two Meta SOP Classes (the Basic Grayscale Print Management Meta SOP Class and the Basic Color Print Management Meta SOP Class) is supported on the Association, the Printer SOP Class is also supported and hence the method is expected to be called. If none of the two Meta SOP Classes is supported, the method will never be called.

In warning and failure conditions, the Print SCP is supposed to supply additional information about the printer status in the Attribute Printer Status Info (the property DicomPrinterReportInformation.PrinterStatusInfo of the DicomPrinterReportInformation class).

The implementation of the DicomPrintScu class for this method simply does nothing. In order to make use of this callback method, you should create a new class derived from the DicomPrintScu class and override the method providing the desired implementation.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features