on 08-10-2010 1:39 AM
Hi everyone,
Currently on our unix based printing solution we use device type specific formats to force output to a specific tray.
We define one device type per tray (eg HPLJ5SI is the base driver copied to ZHPLJ5T1, ZHPLJ5T2, T3 ..etc..) and for every format associated to the device driver we add an escape sequence to the start-of-page action.
Heres how we do it:
SPAD -> "Full Administration" -> "Device Types Tab" -> "Device Types" -> Select "ZHPLJ5T2" device type -> Click "Formats" -> Click "Dina4" (or any other format) -> switch to "change mode" -> double click on "Start of page" action.
As this is our tray 2 device driver we would set:
Feed paper from Tray 2
\e&l1H
However I've been playing with SAPWIN and SAPSprint, and for the life of me can not pass these escape sequences to the various printers. When I try and use the escape sequence above the "l1H" portion is actually printed on the output.
Is there a way I can pass the above escape sequence codes to the printer without SAPWIN/SAPsprint trying to do something overally smart with it?
Edited by: Shaun on Aug 10, 2010 10:58 AM
Hi Shaun,
For windows device types, it is not PCl commands but GDI commands which are passed to the windows printer driver of the printer. This should convert them to PCL commands sent to the printer.
The commands that can be used with device type SAPWIN are listed in SAP note #21738.
Esc T n: Select Papertray n
Because the windows driver doesn't unersand the PCL command e&l1H, it prints out the printable characters.
Regards,
Aidan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aidan,
So in the "Start of page" action within each format for say our "Tray 2" device type, I would set:
"\eT2"
or
"\033T2"
or
"\0x33T2"
or
"EscT2"
or something else?
Cheers
Shaun
Edited by: Shaun on Aug 11, 2010 10:27 AM
OK. I just tested the four commands above, and \eT2 and \033T2 seemed "ok", although the printout still went to a different tray, whereas the other two commands show "stuff" on the actual printout.
So ... \eT2 or \033T2 ... is this format ok? Why did they still print on tray 4 and not tray 2? I've also tested trying to print to Tray 3, but that also prints to Tray 4.
Cheers
Shaun
Edited by: Shaun on Aug 11, 2010 10:53 AM
After further testing, Im convinced that the SAPWIN form specific settings of "\eT2" or "\eT3" are ok.
I have set the SAPsprint log level to 9, and can clearly see that its setting the appropriate tray:
Th 05064: (11.08.2010 11:34:19) Calling set_tray
Th 05064: (11.08.2010 11:34:19) set_tray: pdm->dmFields = 780ff43
Th 05064: (11.08.2010 11:34:19) ResetDCW: pdm->dmFields = 780ff43
Th 05064: (11.08.2010 11:34:19) ResetDCW: pdm->dmDefaultSource = 2 <---- tray 2
Th 05064: (11.08.2010 11:40:36) Calling set_tray
Th 05064: (11.08.2010 11:40:36) set_tray: pdm->dmFields = 780ff43
Th 05064: (11.08.2010 11:40:36) ResetDCW: pdm->dmFields = 780ff43
Th 05064: (11.08.2010 11:40:36) ResetDCW: pdm->dmDefaultSource = 3 <---- tray 3
So .. why is the printer not using these trays?
I have tested printing using notepad directly to a specific tray, by selecting the tray via the printing preferences and its works fine. I just cant get SAPsprint to tell the printer the appropriate tray.
NB: Yes, I am using the latest HP Color LaserJet 4730mfp PCL 5c (and PCL 6) printer driver.
Help!
Cheers
Shaun
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.