LEADTOOLS Support
ePrint
ePrint Questions
Print Dicom have annotation and image
#1
Posted
:
Thursday, July 4, 2024 2:09:11 AM(UTC)
Groups: Registered
Posts: 16
How to print dicom photo film using a dicom printer with patient information annotations attached to the image so that the film can print like this
https://drive.google.com...1zDY5xR/view?usp=sharingI use C# with namespace Leadtool.Dicom and DicomPrintSCU Class
#2
Posted
:
Tuesday, July 9, 2024 4:37:59 PM(UTC)
Groups: Registered, Manager, Tech Support, Administrators
Posts: 16
Hello Lehuy,
You can follow the example on this page to see how to implement the DicomPrintScu and PrintFilmSession classes to achieve this use case:
https://www.leadtools.co...cu-printfilmsession.htmlI believe you will need to add the text annotations that contain the patient information to be printed as an overlay. You can extract information from a DicomDataSet using the FindElement methods:
https://www.leadtools.co.../dh/di/dicomdataset.htmlPlease let us know if you have any questions.
Tommy Thyen
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Wednesday, July 10, 2024 4:17:13 AM(UTC)
Groups: Registered
Posts: 16
I also use this code but why printSCU.IsClassSupported(DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass)
returns false so int annotationBoxCount = printSCU.GetAnnotationBoxesCount();
returns value 0 Reason why
#4
Posted
:
Wednesday, July 10, 2024 9:25:38 AM(UTC)
Groups: Registered, Manager, Tech Support, Administrators
Posts: 16
Hello Lehuy,
Whether or not this capability is supported will be determined by the specific DICOM printer/SCP that you are associating with. Additionally, for the SCU to properly acknowledge the supported capability, you will need to pass the corresponding DicomPrintScuPrintManagementClassFlags (https://www.leadtools.com/help/sdk/dh/di/dicomprintscuprintmanagementclassflags.html) to the Associate call. Using DICOM Jet v2.0 as my SCP, I am able to instantiate a DicomPrintScu and call Associate with the following code:
using (MyDicomPrintSCU printSCU = new MyDicomPrintSCU(null)) { //note this is a custom class that derives from DicomPrintScu
bool ret = printSCU.Associate(dicomServer.Address.ToString(), dicomServer.Port, dicomServer.AETitle, "TEST",
DicomPrintScuPrintManagementClassFlags.BasicGrayscalePmMetaSopClass |
DicomPrintScuPrintManagementClassFlags.BasicColorPmMetaSopClass |
DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass |
DicomPrintScuPrintManagementClassFlags.BasicPrintImageOverlayBoxSopClass |
DicomPrintScuPrintManagementClassFlags.PresentationLutSopClass |
DicomPrintScuPrintManagementClassFlags.PrintJobSopClass |
DicomPrintScuPrintManagementClassFlags.PrinterConfigurationRetrievalSopClass);
Console.WriteLine(printSCU.IsClassSupported(DicomPrintScuPrintManagementClassFlags.BasicAnnotationBoxSopClass));//returns true
}
Please let us know if you have any questions.
Tommy Thyen
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
ePrint
ePrint Questions
Print Dicom have annotation and image
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.