DirkRi
27th June 2007, 22:18
Does anyone have a Baan IVc3 print driver (and barcode driver) for a DataMax I4604 that they would be willing to share?
Thanks!

bdittmar
28th June 2007, 10:56
Does anyone have a Baan IVc3 print driver (and barcode driver) for a DataMax I4604 that they would be willing to share?
Thanks!


Hello,

based on the connection of the Labelprinter, there are many ways to realize printing Labes.

If printer is connected to a local WIN Client PC, you're able to use bwprint with the DataMax Windows printerdriver.

Be more specific with your requirements and someone maybe able to help you.

Regards

DirkRi
28th June 2007, 14:27
Hi,
Sorry about the lack of info, but I'm not quite sure how to do this. The printer is attached to a Unix print queue. I would like to use the standard Baan way of printing to this device (if possible) by defining a print device associated with the queue. I found a basic print driver for the device on the board but I not quite sure how to approach this. I've heard that I must write some type of Unix script to pass the print file directly to the queue, possibly stripping the carriage returns (?).

Thanks for any help you can provide.

norwim
28th June 2007, 17:22
Hi DirkRi,

I don't know the printer in question here, but what I usually did to get label printers accept print jobs from Baan is the following:
Instead of studying the printer manuals, we fumble around with windows label printing programs until we have a file that is pure ascii and prints the required layout when sent to the printer with the unix lp command.
Most programs for creating and printing labels allow you to print to a file.
When defining the variable parts of the label, you have to use special character sets which are actually interpreted by the printer.
In other words: if you wish to print EAN 13 barcode for the number 12345, the asci file has to contain the sequence 12345 embedded in control sequences, NOT the actual data for the pixels to be printed (which will be the case, if you use a charset that the printer can't resolve alone).
When you have created a file in this way, you should be able to copy it to the lpt port with "copy /B filename lpt1:"
in a dos box and the printer should print the desired label. (like it should on a unix system, don't forget to print in RAW mode - that's what's the "/B" stands for in DOS btw).
Once you achieved this you are 95% there.
The rest to do is to create a report in Baan, containg all the required control commands as fixed text plus the data fields with the variable data.
As printer driver in Baan simply create an empty file (permissions + owner!!) in $BSE/printinf and make sure not to forget to print in raw mode.

hth

Norbert

DirkRi
28th June 2007, 18:08
Thanks for the advice.

bdittmar
28th June 2007, 20:57
Thanks for the advice.

Hello,

i've done it with ZEBRA printers using ZPL printer language, the Datamax uses DPL language simmilar to ZPL.

as Norbert suggest, do the following :

Create a lp queue which provides RAW datastream.

Create a BaaN printer like .

DATAMAX
Labelprinter
Direct
ISO-8859-1
lc_asc
/usr/bin/lp -d<queue> -o nb -n%d -s %s
A4
0

Pagelength is set to zero


The lc_asc (ASCII Driver) located in $BSE/lib/printinf/l contains :

#******************************************************************************
# @(#)
# @(#) File : LC_ASC
# @(#)
# @(#) Printer : ASCII Printerdriver
# @(#) Emulation Mode : RAW ASCII Charset
# @(#) Character Set : International char.set 0
# @(#)
# @(#) Date : 02.08.2005
# @(#) Driverset : 94.002
# @(#) Version : 1.0.000
# @(#) Copyright : Lust Antriebstechnik GmbH
# @(#) Customer : Bernd Dittmar
# @(#)
# @(#) Comment :
# @(#)
#******************************************************************************

#******************************************************************************
# Booleans
#******************************************************************************

#******************************************************************************
# Setup
#******************************************************************************
#initpr=\E@\Et0\ER0\EM\Ex0, # Reset,EPS-EMUL,Farbe Schwarz, 12Cpi, NLQ off
#resetpr=\E@,

#******************************************************************************
# Character Sizes
#******************************************************************************
#large=
#middle=
#small=

#******************************************************************************
# Line Drawing Chars
#******************************************************************************
#pctl=\0332,
#pctr=\0277,
#pcbl=\0300,
#pcbr=\0331,
#put=\0302,
#prt=\0264,
#plt=\0303,
#pdt=\0301,
#phb=\0304,
#pvb=\0263,
#pkr=\0305,

#******************************************************************************
# Print Features
#******************************************************************************
#pbold=\EE,
#pobold=\EF,
#punder=\E-1,
#pounder=\E-0,
#pdbl_wide=\EM\EW1,
#podbl_wide=\EW0\EP\022,
#pitalic=\E4,
#poitalic=\E5,
#pnlq=\Ex1,
#ponlq=\Ex0,
#psubscript=\ES1,
#posubscript=\ET,
#psuperscript=\ES0,
#posuperscript=\ET,

#******************************************************************************
# Character Sets
#******************************************************************************
#set0=\ER0,
#set1=\ER1,
#set2=\ER4,
#set3=\ER5,

#******************************************************************************
# NLS Table
#******************************************************************************
#nls_out=dfx8000.out,

#******************************************************************************
# Colors
#******************************************************************************

#******************************************************************************
# Fonts
#******************************************************************************
# NLS Table
#******************************************************************************
#nls_out=dfx8000.out,

#******************************************************************************
# Colors
#******************************************************************************

#******************************************************************************
# Fonts
#******************************************************************************

#******************************************************************************
# Barcode Directory
#******************************************************************************

#******************************************************************************
# User Defined
#******************************************************************************


In the report only ZPL commands with variales are stored like and look like :

^XA^LL76^MD15
^LH8,4^FO22,30^AB^FDFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFF^FS
^FO22,50^AA^FDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFF^FS
^FO22,65^AA^FDFF/FF FFFFFF FFFF FF/FF FFFFFF FFFF^FS
^FO360,23^BXN,2,200,,,,^FDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF^FS
^XA^LL76^MD15
^LH8,4^FO15,20^AB^FDFFFFF^FS^XZ
^XA^LL76^MD15
^LH8,4^FO15,20^AB^FDFFFFF^FS^XZ
^XA^LL76^MD15
^LH8,4^FO15,20^AB^FDFFFFF^FS^XZ
^XA^LL76^MD15
^LH8,4^FO15,20^AB^FDFFFFF^FS^XZ

The above commands in your case must be written in DPL language.

:-) That's all !

Hope this will help you a little bit.

Regards

dylanhay
15th July 2014, 06:26
there is another topic on barcode printing (http://www.keepdynamic.com/barcoding/csharp-barcode-generator.shtml) which you can refer to
http://www.baanboard.com/baanboard/showthread.php?p=5939

best regards

hongdida
17th July 2014, 07:21
Solved? I did not find the solution???:eek: New to use the Baan IVc3 printer.