sepp13
28th May 2008, 11:09
Hallo,

we use for enveloping a print machine. I want to give some information to this print machine, but it shold not print real or on display, like "white on white".

Do somebody know how to do it, or other tips for this problem?

Thanks,
sepp13

günther
28th May 2008, 12:37
Let's start with the obvious things: if spool device is "D", "DL" or something like that, don't add anything.

To send additional data to the printer, you modify your report script:

string buf(100)
buf = "something"
spool.buf(buf, len(buf))

Instead of "something" you could add printer sequences (e.g. ESC ...), but keep in mind that then your report might work on one printer model but not one the other!

You could also have a look at the barcode functionality:

string buf(100)
buf = bc$(40, 10, "something") | 40 = barcode type, 10 = height
spool.buf(buf, len(buf))

Then you will have to create a script (are you on unix?) $BSE/lib/barcode/type40.

Günther