haste-
27th January 2005, 15:16
I use a printer with standard duplex printing mode on.
I'm currently testing a program that prints sheets that are not allowed to be printed in duplex mode.
I dont want to change the duplex mode on the printer, because it's often used by more people.
Is it possible to place a command in BAAN so it doesnt print with duplex mode?
A command that turns off duplex printing.
Thanks in advance,
Ruud Brandenburg
p.cole
27th January 2005, 20:43
I haven't tried it myself but you may want to look into Windows Server printing thats been released around Baan IVc4 SP16.
haste-
1st February 2005, 09:14
So, i have to install SP16 for Baan 4 and then there's an option included that can take care of this?
mark_h
1st February 2005, 14:31
That might be the easiest way. Of course I think you can use the report and set the appropriate control sequences in it - turn it off, then back on. I have never had to do something like that, but I think it is feasible. Seems to me there was some other posts in this forum about doing something like this. Check this post (http://www.baanboard.com/baanboard/showthread.php?t=6176&highlight=printing+bold).
Mark
klixy23
2nd February 2005, 14:57
Hi,
You can add in your report script:
before.program:
spool.pr.line = chr$(27) & "&l0S" | no duplex
spool.buf(spool.pr.line, 0)
spool.line() sends always a new line to the printer, so your page break get out of sync.
kbartelds
2nd February 2005, 15:45
Maybe good idea to test the suggestion of klixy23, not using the report script, but put it on the first layout, first position as a string.
Regards,
Klaas
haste-
8th February 2005, 09:02
Unfortunately it doesnt work.
It still keeps printing duplex :(
Any other suggestions?
RobertB
9th February 2005, 11:39
This (should!) work in Baan V - I haven't tried it. I'm not sure if the pp$ function is available in Baan IV (See Baan Windows Printing guide / Functions for Printer Operations: pp$: "Use this to pass an escape sequence directly to the printer").
Put this at the beginning of your print job:
string esc.char(1), hp.uel(9), hp.reset(2)
string pcl.mode(4), pcl.simplex(5), pcl.duplex(5), pcl.duplex.long.edge(5)
string pcl.duplex.short.edge(5), pcl.duplex.next.side(5), pcl.duplex.front.side(5)
string pcl.duplex.back.side(5)
| Define some variables.....
esc.char = chr$(27)
hp.reset = esc.char & "E"
hp.uel = esc.char & "%-12345X"
pcl.mode = esc.char & "%0A"
pc.simplex = esc.char & "&l0S"
| pc.duplex.long.edge = esc.char & "&l1S"
| pc.duplex.short.edge = esc.char & "&l2S"
| pc.duplex.next.side = esc.char & "&a0G"
| pc.duplex.front.side = esc.char & "&a1G"
| pc.duplex.back.side = esc.char & "&a2G"
| Set up simplex.....
spool.pr.line = pp$(hp.uel & hp.reset & pcl.simplex)
spool.line()
spool.pr.line = pp$(hp.reset & hp.uel)
spool.line()
Then do the print. Of course, if you get extra line-feeds then do as Klixy suggests and do spool.buf( pp$(...) ).
HTH,
Robert