Hi,
Maby i can give you a direction. I have done this in the past for some automatic printing, by modifying the source PostScript file. Condition is that the printer must support postscript language. And for any printer this could be different, i don't know exactly.
With .NET i modify the source Postscript file and add this line to send the postscript to a specific tray:
(printerinfo trayselect 5 = lade 3)=string FieryXJdict /ExtCmdGetExec get exec {pop} if
or:
%%BeginFeature:
%%+ *InputSlot Drawer1
<</InputAttributes <</Priority [1]>> >> setpagedevice
%%EndFeature
This is an example for an Canon printer.
This is working for an plain HP laserprinter:
tray 1:
%%BeginFeature: *InputSlot ManualFeedTray/ Tray
<</ManualFeed false /MediaPosition 3>> setpagedevice
%%EndFeature
tray 2:
%%BeginFeature: *InputSlot Tray2
<</ManualFeed false /MediaPosition 0>> setpagedevice
%%EndFeature
tray 3:
%%BeginFeature: *InputSlot Tray3_500
<</ManualFeed false /MediaPosition 1>> setpagedevice
%%EndFeature
tray 4:
%%BeginFeature: *InputSlot Tray4_500
<</ManualFeed false /MediaPosition 4>> setpagedevice
%%EndFeature
try to put this right behind this line: %!PS-Adobe-3.0
regards,
Sil
Maby i can give you a direction. I have done this in the past for some automatic printing, by modifying the source PostScript file. Condition is that the printer must support postscript language. And for any printer this could be different, i don't know exactly.
With .NET i modify the source Postscript file and add this line to send the postscript to a specific tray:
(printerinfo trayselect 5 = lade 3)=string FieryXJdict /ExtCmdGetExec get exec {pop} if
or:
%%BeginFeature:
%%+ *InputSlot Drawer1
<</InputAttributes <</Priority [1]>> >> setpagedevice
%%EndFeature
This is an example for an Canon printer.
This is working for an plain HP laserprinter:
tray 1:
%%BeginFeature: *InputSlot ManualFeedTray/ Tray
<</ManualFeed false /MediaPosition 3>> setpagedevice
%%EndFeature
tray 2:
%%BeginFeature: *InputSlot Tray2
<</ManualFeed false /MediaPosition 0>> setpagedevice
%%EndFeature
tray 3:
%%BeginFeature: *InputSlot Tray3_500
<</ManualFeed false /MediaPosition 1>> setpagedevice
%%EndFeature
tray 4:
%%BeginFeature: *InputSlot Tray4_500
<</ManualFeed false /MediaPosition 4>> setpagedevice
%%EndFeature
try to put this right behind this line: %!PS-Adobe-3.0
regards,
Sil