Entering content frameBarCode.DLL Compatibility With SAPlpd Locate the document in its SAP Library structure

To assure compatibility with the R/3 SAPlpd program, the barcode.DLL vendor must verify that the following are true:

Any barcode.DLL that offers the following two functions should be compatible with SAPlpd (also see SAP Note 25344 for descriptions of the parameters in the function calls):

bool BarcodeInit(far char * buff, int bufflen)

/* SAPlpd calls this function when SAPlpd starts. The
parameter buff points to a buffer in SAPlpd of length
bufflen. The barcode.DLL puts a string in this buffer which
is output by SAPlpd in its log window.
The string identifies
the bar code.DLL: name, manufacturer, version.
Return TRUE if OK. */

int Bar codePrint( HDC * hPr, bar code * bc_ptr)

/* This function is called by SAPlpd to print a bar code. The
hPr parameter contains the GDI device context for the output
device. The parameter bc_ptr points to a control block which
contains the information about the bar code.

Return code 0: execution successful
Return code <> 0: An error occurred. In this case, the
pointer errmsg in the control block must be set accordingly.

The control block must contain the following fields: */

short protovers /* Log version used. Set to 3 by
SAPlpd. */
int xpos; /* Start position. Set to the current
int ypos; cursor of SAPlpd.
Output of the
bar code begins here.*/
int hsize; /* Required size of bar code. -1 sets
int vsize; to standard size. */
char far * str; /* Data */
int strlength;
int check; /* Compute checksum:
0: no checksum
1: with checksum
-1:
Accept standard bar code
settings */
int label; /* label Bar code */
int fontsize; /* Font size and pitch
int hspacing; (specified according to current
map mode) */
int codeid = { /* which bar code? */
BC25INDU, 2 of 5 industrial
BC25MATRIX, 2 of 5 matrix
BC25INTER, 2 of 5 interleave
BCCODABAR Codabar
BCCODE39, Code 39
BCCODE39EXT, Code 39 Extended
BCCODE93, Code 93
BCCODE93EXT, Code 93 Extended
BCCODE128B, Code 128 Subset B
BCEAN8, EAN 8
BCEAN8P2, EAN 8 + 2
characters
BCEAN8P5, EAN 8 + 5
characters
BCEAN13, EAN 13
BCEAN13P2, EAN 13 + 2
BCEAN13P5, EAN 13 + 5
BCUPCA UPC A
BCUPCAP2 UPC A + 2
BCUPCAP5 UPC A + 5
BCUPCD1 UPC D-1
BCUPCD2 UPC D-2
BCUPCD3 UPC D-3
BCUPCD4 UPC D-4
BCUPCD5 UPC D-5
BCUPCE, UPC-E
BCUPCEP2, UPC-E + 2
BCUPCEP5, UPC-E + 5
0 Accept bar code
default};
int scale_s1; /* Scaling information about stripe widths
int scale_s2; and vertical line spacing.
int scale_s3;
int scale_s4;
int scale_l1;
int scale_l2;
int scale_l3;
int scale_l4;

char far * errmsg; /* Possible error message */

 

This graphic is explained in the accompanying text  First Page of SAP Printing Guide

 

 

 

 

Leaving content frame