i Leadtools Support Staff!
I am working with DicomPrintScu Class to print a Dicom image to a Dicom printer. However, I having some problems. I really need your help as soon as possible. Here are my problems
1. I want to print(or send ) annotation object of Dicom Image to a Dicom printer to print on a Film. But I don't know How to do that. Currently I have Dicom File(dcm) and a Annatation file(ann). Please tell me How to print Annotation together with Dicom image to a Dicom Printer
2. I am facing a new Error about DicomOverlayBoxParameters . I code as follow(here printSCU is a class that inheritence from DicomPrintScu). You can see at your Help code in your website at
http://www.leadtools.com/Help/LEADTOOLS/v16/DH/DI/Leadtools.Dicom~Leadtools.Dicom.DicomPrintScu~Associate(String,Int32,String,String,DicomPrintScuPrintManagementClassFlags).html-------------------Here is my code---------
if (printSCU.GetOverlayBoxInstanceUid() != null)
{
DicomOverlayBoxParameters overlayBoxParameters = printSCU.GetDefaultOverlayBoxParameters();
printSCU.UpdateOverlayBox(printSCU.GetOverlayBoxInstanceUid(), null, overlayBoxParameters, true);
}
//-->It always raise Error Invalid Parameter. I debug some value and Debuger shows that
?overlayBoxParameters
{Leadtools.Dicom.DicomOverlayBoxParameters}
MagnifyToNumberOfColumns: -1
OverlayBackgroundDensity: ""
OverlayForegroundDensity: ""
OverlayMagnificationType: ""
OverlayOriginColumn: 1
OverlayOriginRow: 1
OverlayOrImageMagnification: ""
OverlaySmoothingType: ""
?printSCU.GetOverlayBoxInstanceUid()
""
I call method: printSCU.UpdateOverlayBox(printSCU.GetOverlayBoxInstanceUid(), null, overlayBoxParameters, true);
-->It raise Exception
?ex.Message
"Incorrect parameter."
Please Help me as soon as possible because I am in an Emergency Situation
THANKS IN ADVANCE!
Edited by moderator Wednesday, September 23, 2020 9:49:52 AM(UTC)
| Reason: Fixed link