- creates text for Datamatrix font and writes to file szFilename
Declared for C as
int WINAPI Bar2Ddmw(LPSTR szIn,LPINT n, LPINT mode, LPINT sec, LPSTR szFilename);
where szIn is a pointer to a string containing the text
which is to be converted into the barcode;
n is the number of characters in
the string (or 0 – in which case the string may not contain NULL
characters),
mode specifies the shape of the barcode (0=square, 1=
rectangular) or whether the symbol is encoded using GS1 Datamatrix encoding rule
(2=square GS1, 3=rectangular GS1),
sec is the security level and szFilename
is a pointer to a string that contains the full pathname of the file to receive
the text. If the file exists it will be overwritten. If it does not exist it
will be created if possible.
The security level has allowed values of 0 – 24 for square symbols, or 0 – 6 for rectangular symbols. A negative security level may be used to specify the number of columns in the symbol.
The call returns the number of bytes written to file, which is 0 in the event of a barcode creation error, or -1 in the event of a file creation error.
Basic declaration
Private Declare Function Bar2Ddmw Lib "dmatdf" (ByVal szIn As String, ByRef n As Long, ByRef mo As Long, ByRef sec As Long, ByRef szFilename As String) As Long
More: