SetBarcodeRegExpFile

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetBarcodeRegExpFile (BlackIceDEVMODE* pDevMode, LPCTSTR pValue);

Description

Sets the file and path that contains the regular expression used for the barcode generation. This regular expression is used for the barcode generation if SetBarcodeValueSource is set to BARCODE_PAGE_CONTENT (1).

This regular expression file is used in conjunction with the regular expression format file set by SetBarcodeRegExpFormatFile.

If pValue is NULL or too small, the function returns FALSE, and pSize will contain the number of bytes required for storing the filename.

If the regular expression file is not set or points to a nonexistent file, the whole text of the printed page is used for the barcode generation.

The file must be a UNICODE text file (UTF-16, little-endian with byte-order mark).

 

For help in using regular expressions, please see the regular expressions page of the RTK manual.

 

Internally, the printer driver uses the Microsoft TR1 regular expression library with the ECMA grammar. For more information please see the following page: http://msdn.microsoft.com/en-us/library/bb982727.aspx

 

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

LPCTSTR pValue                                        - null-terminated string, pointer to the filename and path

Return value

TRUE on success, otherwise FALSE.