Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Miscellaneous

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 17th March 2014, 16:17
Medtun Medtun is offline
Senior Member
 
Join Date: Nov 2006
Location: Tunisia
Posts: 211
Medtun is on a distinguished road
Baan: ERP LN - DB: sqlsertver 2005 - OS: Windows 2003
Adding Barcodes to label
Baan: ERP LN 6.1 FP3
C/S: Server

I would like to print barcode for some fields on a label generated with session whwmd5340m000.

I inserted "bc." before the name of the field i wanted to print (#bc.lb.trans.date). And i chosen EAN 128 as bar code type in session whwmd5520m000.
When i print, i gets no barcode.

I'm on windows Seven and i have a Brother laser printer.

Do i have to install any barcode font for the printer?

Could you help me please.

Thank you.
Reply With Quote
  #2  
Old 17th March 2014, 17:39
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
bc$

Quote:
Originally Posted by Medtun View Post
I would like to print barcode for some fields on a label generated with session whwmd5340m000.

I inserted "bc." before the name of the field i wanted to print (#bc.lb.trans.date). And i chosen EAN 128 as bar code type in session whwmd5520m000.
When i print, i gets no barcode.

I'm on windows Seven and i have a Brother laser printer.

Do i have to install any barcode font for the printer?

Could you help me please.

Thank you.
Hello,

use bc$ function:

bc$()
Syntax:

function string bc$ (long type, long rows, string barcode, long options)

Description


Use this to create a barcode of the specified type.


Arguments

long type barcode type, a number in the range 1-1000 for a 1D-barcode and 1001-2000 for a 2D-barcode.

long rows The height of the barcode, as a number of lines.

string barcode The string or data that must be converted to a barcode.

long options Options for the barcode, see below


Context

This function can be used in all script types.

Options for barcodes

1D-Barcode option Description
BC_AUTOPARITY calculate parity
BC_TRANSPARENTBACKGRND transparent background
BC_SHOWLIGHTMARGINS show light margins
BC_SHOWBEARERS show bearer bars
BC_EXTENDBEARERS extend bearer bar into light margin
BC_SHOWTEXT show barcode caption text
BC_CALCCHECKSUM calculate checksum
BC_SHOWCHKDIGIT show checksum digit
BC_FIXEDXUNIT use fixed xunits for barcode width
BC_EXTRA_FLAG1 barcode specific extra1 flag
BC_EXTRA_FLAG2 barcode specific extra2 flag

2D-Barcode option Description
BC2D_TRANSPARENTBACKGRND transparent background
BC2D_AZTECFLAG Aztec flag
BC2D_AZTECMENU Aztec menu option
BC2D_AZTECRVIDEO Aztec reverse video
BC2D_DATAMATRIXGS1 Datamatrix GS1 encoding
BC2D_PDF417TRUNCATE PDF417 truncate
BC2D_SET_MODE(m) mode, valid range: 0x0 - 0xF
BC2D_SET_LEVEL(l) security level, valid range: 0x00 - 0x3F
BC2D_SET_XUNIT(x) set x-unit, valid range: 0x00 - 0xFF
BC2D_SET_MULYUNIT(m) set y-unit multiplier, valid range: 0x0 - 0xF
BC2D_SET_COLUMNS(c) set columns, valid range: 0x0 - 0xF

Multiple options can be combined with bit.or function or with + operator (e.g. if more than 2 options need to be combined). Note that not all options are applicable to all barcodes.

Deprecated variants

string bc$( long type, long rows, string barcode )

string bc$( long type, long rows, string barcode, [long calc_checksum, long show_checkdigits] )

Remarks

The calc_checksum, show_checkdigits and options arguments are not used on non-Windows platforms.
The 3-argument variant of bc$() has a limitation to the barcode type, which need to be in range of 1-31.
The 3- and 5-argument variant of bc$() has a limitation to the barcode string of 224 bytes.
2D-barcodes are supported on Windows platform only, by BWPrint, starting with portingset 6.1c.09 (BW=B40c.95), 8.5a.02 and 8.5b.
Starting with these BWprint versions: a barcode.pdf file is supplied in the directory where BWprint is installed. This pdf contains information about the capabilities and allowed options for barcodes.
1D-barcode options and 2D-barcode options cannot be mixed and will result in unspecified behavior.
Windows platform/BwPrint
The barcode type points to a barcode type. Check the barcode-1D and/or barcode-2D test in the Help menu of BwPrint for available barcode types. The number of available barcode types depend on the thirdparty software from dlSoft. This software is used to generate the barcode images.

Non-Windows platforms
The barcode type points to a shell script that is used to generate the barcode. This script is printer and customer specific. The script is stored in the $BSE/lib/barcode directory. The script name has the form 'type xx ', where xx gets a leading zero for a barcode type with a value lower than 10. For example 'type02' or 'type100'. The script is called by the printer daemon/filter in the form (quotes are added, to surround the barcode caption): $BSE/lib/barcode/type type 'barcode 'rows.

Example

print bc$( 2, 3, "87291803", bit.or( BC_TRANSPARENTBACKGRND,BC_SHOWTEXT) )

Regards
__________________
//Bernd
Reply With Quote
  #3  
Old 19th March 2014, 12:48
Medtun Medtun is offline
Senior Member
 
Join Date: Nov 2006
Location: Tunisia
Posts: 211
Medtun is on a distinguished road
Baan: ERP LN - DB: sqlsertver 2005 - OS: Windows 2003
Thank you bdittmar for your help.
Since i'm not a developer, i wanted to use barcoding functions through baan sessions without coding.
i'm using session "label layout"(whwmd5520m000) in order to specify the fields i would like to print on labels. normally as mentionned in the session's help, it is also possible to print fields with barcodes. But unfortunately, i could not activate this till now.

thank you again.
Reply With Quote
  #4  
Old 11th June 2015, 10:41
Tomas Toth Tomas Toth is offline
Member
 
Join Date: Aug 2011
Posts: 34
Tomas Toth is on a distinguished road
Baan: BAAN IV - DB: BAAN IV - OS: WIN 7
Don't you know please what is the capacity for QR code ?
Reply With Quote
  #5  
Old 11th June 2015, 13:11
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Dm=1005 / Qr=1010

Quote:
Originally Posted by Tomas Toth View Post
Don't you know please what is the capacity for QR code ?
Hello,

see Attachments.

Regards
Attached Images
File Type: png 1010_QR.PNG (8.3 KB, 73 views)
File Type: png 1005_DM.PNG (5.1 KB, 29 views)
__________________
//Bernd
Reply With Quote
  #6  
Old 11th June 2015, 14:27
Medtun Medtun is offline
Senior Member
 
Join Date: Nov 2006
Location: Tunisia
Posts: 211
Medtun is on a distinguished road
Baan: ERP LN - DB: sqlsertver 2005 - OS: Windows 2003
I have no idea about Qr code. unfortunately.
Reply With Quote
  #7  
Old 12th June 2015, 08:01
Tomas Toth Tomas Toth is offline
Member
 
Join Date: Aug 2011
Posts: 34
Tomas Toth is on a distinguished road
Baan: BAAN IV - DB: BAAN IV - OS: WIN 7
I mean, when the string has up to 24 characters, it got printed.
When 25 - then not anylonger.
Also comparing small and capital letters, sometimes yes, sometimes not printed... and I cannot figure out the conditions...
Reply With Quote
  #8  
Old 12th June 2015, 19:31
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
field/variable ?

Quote:
Originally Posted by Tomas Toth View Post
I mean, when the string has up to 24 characters, it got printed.
When 25 - then not anylonger.
Also comparing small and capital letters, sometimes yes, sometimes not printed... and I cannot figure out the conditions...
Hello,

define a variable to hold the values:

e.g. extern domain tcmcs.str50 barcode
fill the barcode variable (e.g. barcode = tcibd001.dsca)

use bc$(type, rows, barcode, options) in your report.

Regards
__________________
//Bernd
Reply With Quote
Sponsored Links
  #9  
Old 13th June 2015, 16:02
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Is your profile right ?

Hello,

your profile says:

Appl.: BaaN 4
DB: Tbase
OS: WIN7

is this right ?

Remarks

The calc_checksum, show_checkdigits and options arguments are not used on non-Windows platforms.
The 3-argument variant of bc$() has a limitation to the barcode type, which need to be in range of 1-31.
The 3- and 5-argument variant of bc$() has a limitation to the barcode string of 224 bytes.
2D-barcodes are supported on Windows platform only, by BWPrint, starting with portingset 6.1c.09 (BW=B40c.95), 8.5a.02 and 8.5b.
Starting with these BWprint versions: a barcode.pdf file is supplied in the directory where BWprint is installed. This pdf contains information about the capabilities and allowed options for barcodes.
1D-barcode options and 2D-barcode options cannot be mixed and will result in unspecified behavior.
Windows platform/BwPrint
The barcode type points to a barcode type. Check the barcode-1D and/or barcode-2D test in the Help menu of BwPrint for available barcode types. The number of available barcode types depend on the thirdparty software from dlSoft. This software is used to generate the barcode images.


Regards
__________________
//Bernd

Last edited by bdittmar : 13th June 2015 at 16:05. Reason: add
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 12:35
"error in running bdbpre" when creating sequential dumps sujitvidwans Tools Administration & Installation 5 16th February 2013 12:56
Scanning issue for barcodes vidya_giree Tools Development 7 18th May 2009 12:25
Label problems pjohns Tools Development 14 8th February 2002 18:36


All times are GMT +2. The time now is 23:52.


©2001-2017 - Baanboard.com - Baanforums.com