Queries the Print SCP for information about the printer and returns the retrieved information.
public Leadtools.Dicom.DicomPrinterInformation GetPrinterInformation(
Leadtools.Dicom.DicomPrinterInformation requiredPrinterInformation,
bool colorPrintManagement
)
Public Function GetPrinterInformation( _
ByVal requiredPrinterInformation As Leadtools.Dicom.DicomPrinterInformation, _
ByVal colorPrintManagement As Boolean _
) As Leadtools.Dicom.DicomPrinterInformation
public:
Leadtools.Dicom.DicomPrinterInformation^ GetPrinterInformation(
Leadtools.Dicom.DicomPrinterInformation^ requiredPrinterInformation,
bool colorPrintManagement
)
requiredPrinterInformation
A DicomPrinterInformation object that specifies the printer information to be retrieved. If this is set to a null reference (Nothing in VB), then it will be assumed that the Values of all the Attributes are required.
colorPrintManagement
true to recommend the Basic Color Print Management Meta SOP Class to be specified in the request to the Print SCP; false to recommend the Basic Grayscale Print Management Meta SOP Class. More details are given below.
A DicomPrinterInformation object that specifies the printer information sent by the Print SCP. If an Attribute was not included in the response of the Print SCP, the corresponding property, in the returned object, is set to an empty string.
Two of the exceptions that can be thrown by this method are:
Exception Type | Condition |
---|---|
DicomExceptionCode.PrintSCUFailureStatus | The response of the Print SCP specifies a Failure status code. |
DicomExceptionCode.PrintSCUClassNotSupported | Neither the Basic Grayscale Print Management Meta SOP Class nor the Basic Color Print Management Meta SOP Class is supported on the Association, and hence the Printer SOP Class is not supported. |
The method will not return until it receives the response of the Print SCP, or an error occurs. The method GetLastOperationStatus can be used to obtain the status code specified in the response of the Print SCP. If the method GetPrinterInformation was successful, the required printer information was retrieved successfully, with either a Success or Warning status code in the response of the Print SCP.
The parameter requiredPrinterInformation specifies the printer information to be retrieved. In the DicomPrinterInformation class, all properties are strings. To query the Print SCP for the Value of an Attribute, the corresponding property, in the passed object, mustn't be a null reference (Nothing in VB); it can be set to an empty string for example. If a property is a null reference, the corresponding Attribute will not be included in the request. However, if all the properties are set to null references, the Print SCP will be queried for the Values of all the Attributes.
The Printer SOP Class is included in both the Basic Grayscale Print Management Meta SOP Class, as well as the Basic Color Print Management Meta SOP Class. The parameter colorPrintManagement recommends the Meta SOP Class to be specified in the request to the Print SCP. However, unless the Meta SOP Class specified by this parameter is supported on the Association, it will not be specified in the request and the method will choose the supported Meta SOP Class instead. Therefore, if only one Meta SOP Class is supported, the method will always choose it irrespective of the value of this parameter.
For an example, refer to Associate.
Products |
Support |
Feedback: GetPrinterInformation Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.