dblanchard
 Senior Member Posts:185
 |
| 2009-04-09 10:07 PM |
|
Attached is a patch for various things, I don't think there is a ticket, could we add?
1. Fix Dicom Print Scu issues (grayscale)
http://www.clearcanvas.ca/dnn/Community/Forums/tabid/69/aff/10/aft/13242/afv/topic/afpgj/1/Default.aspx#13883
2. Updated ResultStatus in ScuBase to Failed when network error or time out
3. created PatientMedicalModule for MWL IOD, and added PatientSex to SetCommonTags
4. Added low level logging of all incoming and outgoing messages - I didn't see it in the toolkit anywhere - this is very helpful for debugging and is now a requirement for our app. Is this OK to add?
thanks,
dan |
Attachment: 090409_PrintScu_MwlIod.patch
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-10 10:17 AM |
|
hi, btw, I'm using vs2008 so I didn't include the update to the ClearCanvas.Dicom project that added PatientMedicalModule.cs - this should go in the Iod\Modules subfolder. |
|
|
|
|
steve
 Senior Member Posts:1885
 |
| 2009-04-13 10:28 AM |
|
Dan,
First, I was going to submit this pas part of the original PrintScu ticket, since we never closed it out. It's number 2276. Second, could you post the PatientMedicalModule.cs? It wasn't part of the patch....
Steve
|
|
| Real-time support available to Clinical Edition and Team Edition customers |
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-13 01:23 PM |
|
hi steve, sorry, it's attached... are you guys going to move to vs2008 any time soon? it makes creating patches much more difficult with different versions...
regards,
dan
|
Attachment: PatientMedicalModule.cs
|
|
|
|
norman
 Senior Member Posts:811
 |
| 2009-04-13 01:25 PM |
|
Hey Dan, Yes, we're planning to move to VS2008 after our next release. So maybe in June or so. N. |
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
|
norman
 Senior Member Posts:811
 |
| 2009-04-13 02:22 PM |
|
Thanks Dan. We were able to get the file directly off the server, so no worries. I think you were the first to upload a .cs file, so we only just discovered the .cs limitation of IIS. :) N. |
|
|
|
|
steve
 Senior Member Posts:1885
 |
| 2009-04-13 03:26 PM |
|
Dan, The fixes are in changeset [9495]. They basically went in "as is". Thanks again for the contribution! Steve |
|
| Real-time support available to Clinical Edition and Team Edition customers |
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-21 10:22 PM |
|
I am using BasicGrayscalePrintScu to print image to film I am using Sony UP-DF550 Dicom printer But when I call Print like that printScu.Print(AECallingTitle, AECalledTitle, Host, Port, basicFilmSessionModuleIod, basicFilmBoxModuleIod, imageBoxPixelModuleIods) --> The Printer print nothing on the film. Can you tell me how to solve that or the way of setting value for basicFilmSessionModuleIod, basicFilmBoxModuleIod, imageBoxPixelModuleIods Here is my code to print it BasicFilmSessionModuleIod basicFilmSessionModuleIod = new BasicFilmSessionModuleIod(); basicFilmSessionModuleIod.PrintPriority = PrintPriority.Med; basicFilmSessionModuleIod.NumberOfCopies = 1; basicFilmSessionModuleIod.OwnerId = "ME"; basicFilmSessionModuleIod.FilmDestinationString = "BIN_1"; basicFilmSessionModuleIod.MediumType = MediumType.Paper; basicFilmSessionModuleIod.FilmSessionLabel = "TEST TEST"; BasicFilmBoxModuleIod basicFilmBoxModuleIod = new BasicFilmBoxModuleIod(); basicFilmBoxModuleIod.ImageDisplayFormat = @"STANDARD\1,1"; basicFilmBoxModuleIod.FilmSizeId = FilmSize.IN8x10; basicFilmBoxModuleIod.MagnificationType = MagnificationType.Bilinear; basicFilmBoxModuleIod.BorderDensity = "BLACK"; basicFilmBoxModuleIod.EmptyImageDensity = "BLACK"; basicFilmBoxModuleIod.FilmOrientation = FilmOrientation.Portrait; IList imageBoxPixelModuleIods = new List(); // Configure 1st Image ImageBoxPixelModuleIod imageBoxPixelModuleIod = new ImageBoxPixelModuleIod(); imageBoxPixelModuleIod.ImageBoxPosition = 1; imageBoxPixelModuleIod.Polarity = Polarity.Normal; imageBoxPixelModuleIod.MagnificationType = MagnificationType.Bilinear; imageBoxPixelModuleIod.RequestedDecimateCropBehavior = DecimateCropBehavior.Crop; imageBoxPixelModuleIod.SmoothingType = SmoothingType.None; BasicGrayscaleImageSequenceIod basicGrayscaleImageSequence = new BasicGrayscaleImageSequenceIod(); basicGrayscaleImageSequence.AddDicomFileValues(ImgFilePath); imageBoxPixelModuleIod.BasicGrayscaleImageSequenceList.Add(basicGrayscaleImageSequence); imageBoxPixelModuleIods.Add(imageBoxPixelModuleIod); BasicGrayscalePrintScu printScu = new BasicGrayscalePrintScu(); printScu.Print(AECallingTitle, AECalledTitle, Host, Port, basicFilmSessionModuleIod, basicFilmBoxModuleIod, imageBoxPixelModuleIods); Thanks in advance! My email is: yourfriend20030@yahoo.com |
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-22 12:17 AM |
|
Does it print a blank film or doesn't print anything? Is there a log or anything on the printer that might indicate the issue? and/or, can you save the clear canvas scu log - i put logging statements in that logs every communication, but you need to configure it w/ log4net, not sure the easiest way to do it.. will try to give more info tomorrow on how to do this tomorrow
|
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-22 05:12 AM |
|
Dear dan blanchard!
It print a blank film( i don't know exactly because I see nothing on the film)
Hik I don't know how to log it. So Can you give me a small project of How to print film? or can you test this sony UP-DF550 for me
Thanks in advance! |
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-22 03:00 PM |
|
Cuongdv, the code you provided looks correct. Put this in front to log to the vs output window. you can copy and paste and email me.. if the printer is exposed to internet i can try printing too... you can email me at sattvik vibes at gmail dot com -- no spaces and replace at with @ and dot with . using log4net; using log4net.Appender; using log4net.Repository.Hierarchy; Logger root = ((Hierarchy)LogManager.GetRepository()).Root; var appender = new DebugAppender { Name = "DebugAppender", Layout = new log4net.Layout.PatternLayout("%date %-5level %logger - %message%newline"), Threshold = log4net.Core.Level.Debug }; appender.ActivateOptions(); root.AddAppender(appender); root.Repository.Configured = true;
|
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-22 09:16 PM |
|
can you give me ClearCanvas.Dicom.dll and ClearCanvas.Common.dll that you build and assume that correct to print film to all device. Because I am using Dll built by my own based on your Project that I downloaded. I think that there are some incorrect code in that project so that I prevent me from printing film with my device
Thanks in advance! |
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-23 12:27 AM |
|
I just got latest and the source code is the same and appears to work fine... can you send me logs or connection info for the dicom printer... |
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-23 12:35 AM |
|
Where can I put your code in my Application?
To have log file I have to go to the hospital where there is a Sony UP-DF550. But I will go there in 2 weeks.
So I hope that I will receive your DLL of Dicom.DLL and Common.DLL as soon as possible so that I can run it in 2 weeks
Then I will inform you the result.
Please help me
Thanks in advance! |
|
|
|
|
dblanchard
 Senior Member Posts:185
 |
| 2009-04-23 12:39 AM |
|
if you want my dlls, just get latest source and compile, it's the same. i don't think the board owners would appreciate uploading DLLs to the forum.
just put the code to log before your code that does the printing. it will put all log to the vs outpuit window, you can copy and paste and send.
regards,
dan |
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-23 02:22 AM |
|
my Email is yourfriend20030@yahoo.com
Please send your DLL built by your own to me. I will check it because nobody have the problem like me.
About logging I will send to you as soon as possible.
ah! Where is the log file if I put before my code of Printting it. I will put it right front of PrintSCU.Print() method. Is it OK?
Thank for your help and hope to get your DLL in my Email!

|
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-23 02:49 AM |
|
I have just received your DLLs To using Log, where can I reference to DLL of log. Because using log4net; using log4net.Appender; using log4net.Repository.Hierarchy; raise error "not found". I have searched all in Clearcanvas Project but could not found. Please tell me or give me that DLL of Logging Thanks in advance! |
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-23 03:35 AM |
|
by the way, can you tell me any application or code in ClearCanvas Project that have applied Print SCU to print Image to Film. I can open it for reference. I found that in open source of ClearCanvas Project. There is no where to use PrintScu to print to film. Only verify and connect to stoage of SCP
Thanks! |
|
|
|
|
cuongdv
 Basic Member Posts:24
 |
| 2009-04-23 03:51 AM |
|
Hi you! I have tried you dll but still the same problems. Can you use Dicom Pri of Etiam at www.etiam.com to test with Laser printer for me. I am using that virtual SCP to test my code. In fact, The laser print image on paper but not correct or exact. because the image in paper is interfered so it is not like the Image in fact. Please help me to download Dicom Pri and test for me the link to download it at http://www.ddlshark.com/search-full-version-warez-dicom+pri.html or www.etiam.com or you can use Google to search "Dicom Pri" keyword Thank again! |
|
|
|
|