Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
GetPrinterConfiguration Method
See Also 
Leadtools.Dicom Namespace > DicomPrintScu Class : GetPrinterConfiguration Method




Queries the Print SCP for the printer configuration information and returns the retrieved information.

Syntax

Visual Basic (Declaration) 
Public Function GetPrinterConfiguration() As DicomDataSet
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim value As DicomDataSet
 
value = instance.GetPrinterConfiguration()
C# 
public DicomDataSet GetPrinterConfiguration()
Managed Extensions for C++ 
public: DicomDataSet* GetPrinterConfiguration(); 
C++/CLI 
public:
DicomDataSet^ GetPrinterConfiguration(); 

Return Value

A DicomDataSet object the holds the retrieved printer configuration information. The information is sent by the Print SCP as one or more Items in a Printer Configuration Sequence (2000,001E). The various members of the DicomDataSet class can be used to investigate the retrieved information.

Example

For an example, refer to Associate.

Remarks

Two of the exceptions that can be thrown by this method are:
Exception TypeCondition
DicomExceptionCode.PrintSCUFailureStatus The response of the Print SCP specifies a Failure status code.
DicomExceptionCode.PrintSCUClassNotSupported The Printer Configuration Retrieval SOP Class is not supported on the Association.

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 GetPrinterConfiguration is successful, the printer configuration information was retrieved successfully, with either a Success or Warning status code in the response of the Print SCP.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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