david01285
19th January 2009, 21:57
A new blog entry has been added:

How to send a escape sequence from a Baan-report to a printer (Epson TMU-220 if possible)?

Hello all,
My problem is that when the printer finishes printing the report (that is a ticket from a miniprinter), I should cut the paper after the last line.
maybe I could fix the problem with a escape sequence but I dont know how to do this in Baan. Any Idea?
Thanks in advance.

günther
20th January 2009, 11:44
You can try at the end of your report:


spool.pr.line = <your printer's escape sequence> | eg. chr$(27) & ...
spool.pr.line()


But normally you should not do such things within your report. Keep in mind, that you will print to the display, then to a lser printer and finally to your specific epson printer.

Baan uses printer drivers for that purpose; e.g. in the directory $BSE/print_inf/e you should see a file epson_fx which is the printer driver for an EPSON FX.

Günther

toolswizard
22nd January 2009, 16:42
Are you using bwprint? If you are printing through bwprint, it will capture all excape sequences going to your printer. However there is an excape sequence that you can send that will allow the number of characters specified to go through untouched. If you don't have the bwprint doecumentation, let me know and I will look it up.