Working With The LPrinterConfiguration Object
The PrinterConfiguration property returns a reference to the LPrinterConfiguration object. This object exposes the ILPrinterConfiguration interface which defines the following properties and methods that can be used to query the Print SCP for the printer configuration information:
Properties
MainObject property: This property returns a reference to the LEADDicomPrintSCU object.
PrinterConfigItems property: This property returns a reference to the collection of the Printer Configuration Items retrieved from the Print SCP by the Get method. The printer configuration information is supposed to be sent by the Print SCP as one or more Items in a Printer Configuration Sequence (2000,001E). For each Item received, an LPrinterConfigurationItem object is added to the collection. Each LPrinterConfigurationItem object exposes the ILPrinterConfigurationItem Interface which defines two collections:
A collection of LAttribute objects that contains an LAttribute object for each Attribute in the Printer Configuration Item, and a collection of LSequence objects that contains an LSequence object for each sequence of items in the Printer Configuration Item. Each LSequence object returns a reference to a collection of LSequenceItem objects, each of which specifies a collection LAttribute objects.
This way, the retrieved printer configuration information can be fully investigated. The following diagram illustrates these relations.
For more information on the properties and methods available through the ILPrinterConfigurationItem, LAttribute, LSequence, and LSequenceItem interfaces, refer to the Working with the LPrinterConfigurationItem Object, Working with the LAttribute Object, Working with the LSequence Object, and the Working with the LSequenceItem Object topics, respectively.
To work with a collection of SequenceItems, use the ILSequenceItems interface. For more information regarding working with this collection of objects, refer to Working with the LSequenceItems Collection.
To work with a collection of LAttribute objects, use the ILAttributes interface. For more information regarding working with this collection of objects, refer to Working with the LAttributes Collection.
To work with a collection of LSequence objects, use the ILSequences interface. For more information regarding working with this collection of objects, refer to Working with the LSequences Collection.
Methods
Get method: This method queries the Print SCP for the printer configuration information.