rupertb
16th October 2002, 22:27
Has anyone done this before, customized baan reports are printing data to this printer fine. Now I'd like to add our company logo too. The printer's programmers manual is very vague. Are there any special requirements for the 8 bit bmp/pcx/img files? I think my bmp file is wrong.

Regards,
Rupert

evertsen
17th October 2002, 00:33
Try this recent posting http://www.baanboard.com/baanboard/showthread.php?s=&threadid=7045&highlight=logo

~Vamsi
17th October 2002, 01:49
Ev, the Datamax printers are different than the laserjets. There are different label printers from Intermec, Datamax, Eltron, Imtec, Monarch, Sato, UBI, Zebra and a few others that I may have not heard about. The unfortunate thing about these printers is the unavailability of a standard language. So there is no one answer to give when trying to code for these printers.

Rupert, please explain the complete setup of how you are printing currently to the Datamax you own (There are too many ways to make these work... so explain as much as you can). There is a possibility I may be of some help :).

evertsen
17th October 2002, 06:53
I guess that is why we use BWPrint to print a logo on our own Datamax printers.:)

rupertb
17th October 2002, 09:41
Vamsi, the printer is being addressed straight from the unix print queue via a tcp/ip print port on the win2000 workstation. There is a homegrown datamax "driver" that handles the initialization strings and places the printer in label mode, the baan report spools the speed, heat, coordinates and data to the device. I was hoping to use a 'baan barcode type' field at the beginning of my report to call a unix script that would execute a
"cat logo.bmp". For now however I'm first testing the logo printing from within a shell script.


#!/usr/bin/ksh
###############################################################################
echo "\0002M3000\r\0001D\0002L\r\D11\r"
echo "\0002IDbLOGO\r"
cat /home/ps00rb2/aspenlogo.bmp
echo "\r\0002L\r1Y1100000010001LOGO\r"
echo "141100001000100TEST\r"
echo "E"



/home/ps00rb2>
/home/ps00rb2>
/home/ps00rb2>./print_logo | spr -Ppet155 -fdefault
/home/ps00rb2>


Regards,
Rupert

rupertb
17th October 2002, 13:06
Thanks Vamsi after re-studing the manual I came across the 'set default memory module' option, it turns out I was loading my image into module 'D' but trying to read from module 'C', I've since incorporated <STX>XD into my script. I've also used a *.PCX image file rather than a *.BMP maybe the BMP will work too, I'll try that next.

Regards,
Rupert