Print SCU (tcpprt) using command line arguments without config(tcpprt.cfg) file

Questions regarding the DCMPRINT library, a DCMTK add-on that implements a DICOM Print Management SCP and SCU

Moderator: Moderator Team

Post Reply
Message
Author
mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Print SCU (tcpprt) using command line arguments without config(tcpprt.cfg) file

#1 Post by mail2vguna »

Hi

I am using DCMTK DICOM Print trial version. 3.6.5 version in c++.

How can i pass the below parameters from SCU(tcpprt.exe) to Print SCP(tcpsrv.exe) using command line arguments without config file?

"medium": "PAPER",
"film_size": "8INX 10IN",
"empty_density": "BLACK",
"magnification": "REPLICATE",
"border_density": "BLACK",
"film_destination": "MAGAZINE",
"film_orientation": "PORTRAIT",
"memory_allocation": "100"
Image Layout : STANDARD2,2

Looking forward your reply. Thanks
Thanks
Guna

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1435
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Print SCU (tcpprt) using command line arguments without config(tcpprt.cfg) file

#2 Post by Marco Eichelberg »

In brief, you cannot. While the API of the underlying library of course allows the developer to set these attributes without reading a configuration file, the command line print client is designed to read configuration data from file (that is, unless you use the text-based interactive user interface, which is mostly for testing purposes). You can define most of the settings you refer to in the configuration file, though:

Code: Select all

[[[CLIENT]]]
[[AUTO-1]]
[Session]
MediumType = PAPER
Destination = MAGAZINE
[Page]
ImageDisplayFormat = STANDARD\2,2
Orientation = PORTRAIT
PageSize = 8INX10IN
Magnification = REPLICATE
BorderDensity = BLACK
The MemoryAllocation attribute is not supported by the print client (and, to be honest, I have never seen a printer that uses it either).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest