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




parameters
A DicomFilmSessionParameters object that specifies the parameters of the Film Session to be created. If this is set to a null reference (Nothing in Visual Basic), then the request will be sent to the Print SCP without specifying any parameters (Attributes).
colorPrintManagement
If either the Basic Grayscale Print Management Meta SOP Class or the Basic Color Print Management Meta SOP Class (but not both) is supported on the Association, then this parameter will be ignored and the request will be to create an Instance of the Basic Film Session SOP Class of the Meta SOP Class supported. If both Meta SOP Classes are supported then: If colorPrintManagement is true, the request will be to create an Instance of the Basic Film Session SOP Class of the Basic Color Print Management Meta SOP Class; otherwise, the request will be to create an Instance of the Basic Film Session SOP Class of the Basic Grayscale Print Management Meta SOP Class.
Requests the Print SCP to create a Basic Film Session SOP Instance.

Syntax

Visual Basic (Declaration) 
Public Sub CreateFilmSession( _
   ByVal parameters As DicomFilmSessionParameters, _
   ByVal colorPrintManagement As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomPrintScu
Dim parameters As DicomFilmSessionParameters
Dim colorPrintManagement As Boolean
 
instance.CreateFilmSession(parameters, colorPrintManagement)
C# 
public void CreateFilmSession( 
   DicomFilmSessionParameters parameters,
   bool colorPrintManagement
)
Managed Extensions for C++ 
public: void CreateFilmSession( 
   DicomFilmSessionParameters* parameters,
   bool colorPrintManagement
) 
C++/CLI 
public:
void CreateFilmSession( 
   DicomFilmSessionParameters^ parameters,
   bool colorPrintManagement
) 

Parameters

parameters
A DicomFilmSessionParameters object that specifies the parameters of the Film Session to be created. If this is set to a null reference (Nothing in Visual Basic), then the request will be sent to the Print SCP without specifying any parameters (Attributes).
colorPrintManagement
If either the Basic Grayscale Print Management Meta SOP Class or the Basic Color Print Management Meta SOP Class (but not both) is supported on the Association, then this parameter will be ignored and the request will be to create an Instance of the Basic Film Session SOP Class of the Meta SOP Class supported. If both Meta SOP Classes are supported then: If colorPrintManagement is true, the request will be to create an Instance of the Basic Film Session SOP Class of the Basic Color Print Management Meta SOP Class; otherwise, the request will be to create an Instance of the Basic Film Session SOP Class of the Basic Grayscale Print Management Meta SOP Class.

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; 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.

Once a Film Session is created, the method CreateFilmBox can then be used to create one or more Film Boxes in the new Film Session. Notice that only one Film Session can be handled on the Association at any time.

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 CreateFilmSession is successful, the Film Session was created successfully, with either a Success or Warning status code in the response of the Print SCP.

Having the Film Session created, the method GetFilmSessionInstanceUid can be used to obtain its SOP Instance UID. Also, the methods UpdateFilmSession, PrintFilmSession, and DeleteFilmSession can be used to update, print, and delete the Film Session, respectively.

The parameter parameters specifies the parameters to be used when creating the Film Session. 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. If parameters is set to a null reference, then the request will be sent without specifying any parameters.

All the rest of the basic Print Management methods will adopt the Meta SOP Class of the created Basic Film Session SOP Instance.

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