pralash
28th March 2019, 10:36
Hi,
How to print the 2D Barcode label in LN... Is it possible to print 2D barcode by using bc$ function?
Can anybody please let me know about 2D Barcode....
Thanks in advance...
Regards,
Pralash
bdittmar
28th March 2019, 11:02
[Hello,
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.
2D Barcode types supported
Current versions of the dBarcode-2D Dynamic Link Library, dBarcode.NET 2D Component, and Active 2D-Barcode Component support the following code types:
dBarcode Code type
dBarcode.NET type
Active Barcode Component Code Type
Barcode type
0
-
Code 16k
1
-
Code 49
2
3
2
PDF417
3
0
0
Aztec
4
1
1
DataMatrix
5
2
3
Maxicode
6
4
4
MicroPDF417
7
5
5
Databar
8
-
Coablock F
9
6
6
QR Code
10
7
7
Micro QR Code
Note that most common 1D barcodes are supported by the standard dBarcode library (DLSBAR32.DLL) and Active Barcode Component 1D Universal.
Regards
pralash
1st April 2019, 11:08
Thanks so much for your response...