Leadtools.Dicom Namespace > DicomPrintScu Class : CreateFilmBox Method |
public void CreateFilmBox( DicomFilmBoxParameters parameters, string refPresentationLutInstanceUid )
'Declaration Public Sub CreateFilmBox( _ ByVal parameters As DicomFilmBoxParameters, _ ByVal refPresentationLutInstanceUid As String _ )
'Usage Dim instance As DicomPrintScu Dim parameters As DicomFilmBoxParameters Dim refPresentationLutInstanceUid As String instance.CreateFilmBox(parameters, refPresentationLutInstanceUid)
public void CreateFilmBox( DicomFilmBoxParameters parameters, string refPresentationLutInstanceUid )
ObjectiveC Syntax
function Leadtools.Dicom.DicomPrintScu.CreateFilmBox( parameters , refPresentationLutInstanceUid )
public: void CreateFilmBox( DicomFilmBoxParameters^ parameters, String^ refPresentationLutInstanceUid )
Exception Type | Condition |
---|---|
DicomExceptionCode.PrintSCUFailureStatus | The response of the Print SCP specifies a Failure status code; no Instance was created. |
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. |
A Film Session must have been created before creating Film Boxes.
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 CreateFilmBox is successful, the Film Box was created successfully, with either a Success or Warning status code in the response of the Print SCP.
Having the Film Box created, the method GetFilmBoxInstanceUid can be used to obtain its SOP Instance UID. Also, the methods UpdateFilmBox, PrintFilmBox, and DeleteFilmBox can be used to update, print, and delete the Film Box, respectively.
When a Film Box is created, the Print SCP will also create one or more Image Boxes, based on the Image Display Format specified by the passed DicomFilmBoxParameters object. An array of the SOP Instance UIDs of these Image Boxes is kept internally. The following methods can be used to handle the Image Boxes:
Similarly, when a Film Box is created, and if the passed DicomFilmBoxParameters object specifies an Annotation Display Format ID, the Print SCP will also create one or more Annotation Boxes, based on the Value of that Attribute. This is true given that the Basic Annotation Box SOP Class is supported on the Association. An array of the SOP Instance UIDs of these Annotation Boxes is kept internally. The following methods can be used to handle the Annotation Boxes:
FreeAnnotationBoxesInstanceUids
The method can be used to create more than one Film Box. However, only the current Film Box (the last one created) can be updated, printed alone, and deleted. Previous Film Boxes can only be printed by printing the whole Film Session.
The parameter parameters specifies the parameters to be used when creating the Film Box. In the passed object, if a string property is a null reference (Nothing in Visual Basic), then the corresponding Attribute will not be included in the request to the Print SCP. Similarly, if a numeric property is negative, the corresponding Attribute will not be included in the request. The Display Format ID must be specified in the passed object.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
DicomPrintScu Class
DicomPrintScu Members
CreateFilmSession Method
GetFilmBoxInstanceUid Method
UpdateFilmBox Method
PrintFilmBox Method
DeleteFilmBox Method
GetDefaultFilmBoxParameters Method
GetLastOperationStatus Method
UpdateImageBox Method
UpdateAnnotationBox Method
CreatePresentationLut Method