Functions | |||||
| LONG | BCGetMaxLenOfData (e_BarCType eType) | ||||
Returns the number of characters for a specified barcode. Returns the exact number of characters that can be encoded with the specified barcode symbology. Returns zero if there is no specified length or an unknown barcode type was passed. \param[in] eType Barcode type.
| |||||
| ERRCODE | BCSetTextEBCDIC (INT nCodepage, t_BarCode* pBarCode, LPCSTR szText, LONG nLen) | ||||
Sets barcode text (EBCDIC version). This function works the same like BCSetTextA() except that the text is specified in EBCDIC encoding and internally converted to ASCII.
| |||||
| ERRCODE | BCCheck (t_BarCode* pBarCode) | ||||
Checks barcode input data for validity. The bar code data is validated to be encoded with the selected symbology. Adjust all bar code parameters before you call this function. If the input data is invalid (a non-zero error code was returned), you can correct the bar code data and try again. If the check was successful, do not change barcode parameters or input data anymore (before you create a bar code).
| |||||
| BOOL | BCGetTranslateEsc (t_BarCode* pBarCode) | ||||
Gets current state information regarding escape-sequence translation. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetTranslateEsc (t_BarCode* pBarCode, BOOL bTranslate) | ||||
| Activates/deactivates the translation of escape-sequences. Defines if escape-sequences in the input data (e.g. " " in "123\n456") shall be translated before encoding takes place. If the translation of escape-sequences is switched off, all characters are encoded "as-is". If it is activated, escape-sequences are translated into their corresponding characters. See Barcode Reference for more information.
| |||||
| e_Compression | BCGetCompression (t_BarCode* pBarCode) | ||||
Returns mode of data compression for barcode content. \param[in] pBarCode Pointer to barcode structure.
| |||||
| ERRCODE | BCSetCompression (t_BarCode* pBarCode, e_Compression eCompression) | ||||
Sets compression mode for barcode content \param[in,out] pBarCode Pointer to barcode structure. \param[in] eCompression Compression mode.
| |||||
| LPCSTR | BCGetFormatA (t_BarCode* pBarCode) | ||||
Gets current format string. Returns currently adjusted value.
| |||||
| LPCWSTR | BCGetFormatW (t_BarCode* pBarCode) | ||||
Gets current format string. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetFormatA (t_BarCode* pBarCode, LPCSTR szFormat) | ||||
| Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily. Please refer to the Barcode Reference for more information.
| |||||
| ERRCODE | BCSetFormatW (t_BarCode* pBarCode, LPCWSTR szFormat) | ||||
| Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily. Please refer to the Barcode Reference for more information.
| |||||
| ERRCODE | BCSetTextA (t_BarCode* pBarCode, LPCSTR szText, LONG nLen) | ||||
| Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned. Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
| |||||
| ERRCODE | BCSetTextW (t_BarCode* pBarCode, LPCWSTR szText, LONG nLen) | ||||
| Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned. Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
| |||||
| LPCSTR | BCGetTextA (t_BarCode* pBarCode) | ||||
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| |||||
| LPCWSTR | BCGetTextW (t_BarCode* pBarCode) | ||||
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| |||||
| BOOL | BCIsTextUnicode (t_BarCode* pBarCode) | ||||
Returns type of current input data. Determines if barcode text was passed as UNICODE string or as ASCII string.
| |||||
| LONG | BCGetTextLen (t_BarCode* pBarCode) | ||||
Gets length of barcode input data. Gets the length of the data set by the user.
| |||||
| LONG | BCGetTextLenCompressed (t_BarCode* pBarCode) | ||||
Gets length of barcode input data (after compression). Gets the length of the data to be encoded.
| |||||
| e_EncodingMode | BCGetEncodingMode (t_BarCode* pBarCode) | ||||
Gets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data.
| |||||
| ERRCODE | BCSetEncodingMode (t_BarCode* pBarCode, e_EncodingMode eMode) | ||||
Sets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data. In dependence on whether the input data is UNICODE or single character encoded the mode has different effects. See e_EncodingMode and e_CodePage for a more detailed description.
| |||||
| e_CodePage | BCGetCodePage (t_BarCode* pBarCode) | ||||
Gets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page.
| |||||
| UINT | BCGetCodePageCustom (t_BarCode* pBarCode) | ||||
Gets the input data encoding code page. (custom value) If another than a predefined code page is used (BCGetCodePage returns eCodePage_Custom), this function returns the code page identifier.
| |||||
| ERRCODE | BCSetCodePage (t_BarCode* pBarCode, e_CodePage eCodePage) | ||||
| Sets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. See e_EncodingMode and e_CodePage for a more detailed description. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page as a code page identifier.
| |||||
| ERRCODE | BCSetCodePageCustom (t_BarCode* pBarCode, UINT nCodePage) | ||||
Sets the input data encoding code page. If another than a predefined code page shall be used that means, if the code page is set to eCodePage_Custom, this function specifies in which code page the input data is encoded. Otherwise the value returned by BCGetCodePage is used.
| |||||
| BOOL | BCGetAutoCorrect (t_BarCode* pBarCode) | ||||
Gets auto-correct option for Code 2 of 5 interleaved. Returns currently adjusted value.
| |||||
| ERRCODE | BCSetAutoCorrect (t_BarCode* pBarCode, BOOL bAutoCorrect) | ||||
Sets auto-correct option for input data. If set to true TBarCode performs the following operations on the input data (before creating the bar code): - Code 39: Trim leading/trailing '*' characters (start/stop characters are added by the encoder) - ISBN-13/ISSN/ISMN: Remove '-' characters (not encoded into the bar code) - Code 2of5 Interleaved: Insert a leading zero if the number of data digits is odd (2/5 IL supports only even number of digits) - Code-128: Remove multiple occurences of leading FNC1 and all occurences of trailing FNC1 characters. - GS1-128: Remove all leading and trailing FNC1 characters (the FNC1 at first position is added by the encoder).
| |||||
| LPCSTR | BCGetDefaultDataByTypeA (e_BarCType eBCType) | ||||
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| |||||
| LPCWSTR | BCGetDefaultDataByTypeW (e_BarCType eBCType) | ||||
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| |||||
|
Checks barcode input data for validity. The bar code data is validated to be encoded with the selected symbology. Adjust all bar code parameters before you call this function. If the input data is invalid (a non-zero error code was returned), you can correct the bar code data and try again. If the check was successful, do not change barcode parameters or input data anymore (before you create a bar code).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
|
Gets auto-correct option for Code 2 of 5 interleaved. Returns currently adjusted value.
| true | Enable auto-correct. This is the default |
| false | Disable auto-correct ----------------------------------------------------------------------------. |
|
Gets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page.
| e_CodePage | The Code Page Identifier. ----------------------------------------------------------------------------. |
|
Gets the input data encoding code page. (custom value) If another than a predefined code page is used (BCGetCodePage returns eCodePage_Custom), this function returns the code page identifier.
| UINT | The Code Page Identifier. ----------------------------------------------------------------------------. |
|
Returns mode of data compression for barcode content. \param[in] pBarCode Pointer to barcode structure.
| Compression | mode. ----------------------------------------------------------------------. |
|
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| LPCSTR | The default data for given bar code type. ----------------------------------------------------------------------------. |
|
Returns the default data according to given bar code type. Returns the default data as string for the specified barcode symbology. \param[in] eBCType Type of barcode.
| LPCSTR | The default data for given bar code type. ----------------------------------------------------------------------------. |
|
Gets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data.
| e_EncodingMode | The Encoding Mode. ----------------------------------------------------------------------------. |
|
Gets current format string. Returns currently adjusted value.
| LPCSTR | Current format string. Default is NULL ----------------------------------------------------------------------------. |
|
Gets current format string. Returns currently adjusted value.
| LPCSTR | Current format string. Default is NULL ----------------------------------------------------------------------------. |
|
Returns the number of characters for a specified barcode. Returns the exact number of characters that can be encoded with the specified barcode symbology. Returns zero if there is no specified length or an unknown barcode type was passed. \param[in] eType Barcode type.
| >0 | The number of expected input characters. |
| 0 | Number of input characters is unknown for this barcode. ----------------------------------------------------------------------------. |
|
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| LPCWSTR | Text to be encoded as barcode (UNICODE) ----------------------------------------------------------------------------. |
|
Gets length of barcode input data. Gets the length of the data set by the user.
| LONG | Number of characters ----------------------------------------------------------------------------. |
|
Gets length of barcode input data (after compression). Gets the length of the data to be encoded.
| LONG | Number of characters ----------------------------------------------------------------------------. |
|
Gets barcode text. Returns the data to be encoded as barcode (also called utilizable data).
| LPCWSTR | Text to be encoded as barcode (UNICODE) ----------------------------------------------------------------------------. |
|
Gets current state information regarding escape-sequence translation. Returns currently adjusted value.
| true | Escape sequences are translated |
| false | Escape sequences are not translated. This is the default ----------------------------------------------------------------------------. |
|
Returns type of current input data. Determines if barcode text was passed as UNICODE string or as ASCII string.
| true | The barcode data was set with BCSetTextW(). |
| false | The barcode data was set with BCSetTextA(). ----------------------------------------------------------------------------. |
|
Sets auto-correct option for input data. If set to true TBarCode performs the following operations on the input data (before creating the bar code): - Code 39: Trim leading/trailing '*' characters (start/stop characters are added by the encoder) - ISBN-13/ISSN/ISMN: Remove '-' characters (not encoded into the bar code) - Code 2of5 Interleaved: Insert a leading zero if the number of data digits is odd (2/5 IL supports only even number of digits) - Code-128: Remove multiple occurences of leading FNC1 and all occurences of trailing FNC1 characters. - GS1-128: Remove all leading and trailing FNC1 characters (the FNC1 at first position is added by the encoder).
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|
Sets the input data encoding code page. If the data encoding mode is set to eEncMode_CodePage this function specifies in which code page the input data is encoded. Otherwise the code page is ignored. See e_EncodingMode and e_CodePage for a more detailed description.
If the this function returns eCodePage_Custom use the function BCGetCodePageCustom to receive the code page as a code page identifier.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets the input data encoding code page. If another than a predefined code page shall be used that means, if the code page is set to eCodePage_Custom, this function specifies in which code page the input data is encoded. Otherwise the value returned by BCGetCodePage is used.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets compression mode for barcode content \param[in,out] pBarCode Pointer to barcode structure. \param[in] eCompression Compression mode.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------. |
|
Sets the data encoding mode. The data encoding mode specifies how TBarCode interprets the input data. In dependence on whether the input data is UNICODE or single character encoded the mode has different effects. See e_EncodingMode and e_CodePage for a more detailed description.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily.
Please refer to the Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets format string applied to barcode data prior encoding. The format string is applied to the barcode data before it is encoded. Using the format string you can perform special operations (like including special control characters, subset switching, start/stop character control) easily.
Please refer to the Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred ----------------------------------------------------------------------------. |
|
Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned.
Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
\
|
Sets barcode text (EBCDIC version). This function works the same like BCSetTextA() except that the text is specified in EBCDIC encoding and internally converted to ASCII.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
\
|
Sets the barcode data (ASCII version). This function applies the input data to the barcode. The input data is also often called "utilisable data". The set of allowed characters depends on the selected barcode type. Some barcode types support alphanumeric or even binary characters, others only numeric. Some types require a specific data length, others do not. If the input data is invalid for the currently selected barcode type, an error code <> 0 is returned.
Please examine the Barcode Reference (https://www.tec-it.com/documentation) to be informed about the data format of the bar codes supported by TEC-IT.
\
|
Activates/deactivates the translation of escape-sequences. Defines if escape-sequences in the input data (e.g. "
" in "123\n456") shall be translated before encoding takes place. If the translation of escape-sequences is switched off, all characters are encoded "as-is". If it is activated, escape-sequences are translated into their corresponding characters. See Barcode Reference for more information.
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------. |
| © 2019 All rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Sat Jul 13 03:16:06 2019 for TBarCode Library 11 with doxygen 1.1.5 |