Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact us Request to publish your help manuals Request to remove your help manuals

Introduction
 » SmartCodeWebControl
Using SmartCodeWebControl
 » Setting in Visual Studio
 » Barcode Properties & Functions
 » Barcode Symbology Reference
 » SmartCodeWebControl Programming
 » Verification & AutoCorrection
 

Verification & AutoCorrection

SmartCodeWebControl is able to perform many different checks, verification and auto-correction to the data to be encoded as barcode. These procedures are based on industry best practices to provide a powerful and flexible way of managing barcode data.

AutoCorrection and Verification Functions

String VerifyandCorrect() - This function will perform verification and auto-correct data as specified in the next section below. It is also a function that SmartCodeWebControl uses internally (as a last line of defence) before data is actually encoded as a barcode. Use this function in your application if you will like to know the exact data to be encoded before the barcode is being drawn. Set up the necessary values like Symbology, and BarcodeData, Input Mode (UPCE/UPCA) before calling this function.

Note - This function is always used internally by SmartCodeWebControl, thus it is typically not necessary for your application to call this function. It is provided so that an application will have a mechanism to find out the final value used to encode the barcode.

int Verify() - This function performs a strict verification to determine whether the data to be encoded adheres to specifications. No padding or truncation as in VerifyandCorrect will be carried out. Data that does not adhere to specifications as described below will be rejected. For example, in a EAN13 barcode, 12 numbers will be expected (with the 13th number generated automatically by SmartCodeWebControl as the check digit). If less than 12 numbers or more than 12 numbers are fed into this function, it will return error in the return value. The following is the list of the return values.

  • 0 - OK
  • 1 - Data exceed required length e.g. If more than 12 digits are passed into an EAN13 barcode. Note the 13th digit is an auto generated check digit.
  • 2 - Data is less than required length e.g. If less than 12 digits are passed into an EAN13 barcode.
  • 3 - Incorrect length e.g. For barcodes like Postnet, data of length 5, 9 and 11 digits are supported. In this case, if the length of the data passed in is not one of the supported length, this error will be returned.
  • 4 - Incorrect Data e.g. If alphabets are passed into an EAN13 barcode that only support numbers.

Description of AutoCorrection (The Verify method also depends on the description below)

Barcode Generator Bookkeeping software Barcode software
Business financial software Billing software Accounting software

 

Code 39

Characters Supported

'0'..'9','A'..'Z, '-', '.', ' ', '$', '/', '+', '%' Lower-case alphabets will be made upper-case automatically. Characters that are not supported will be trimmed.

Padding

Not applicable.

Truncation

If data exceed 255 characters, the rest of the characters will be trimmed.

Code 39 ASCII

Characters Supported

ASCII characters

Padding

Not applicable.

Truncation

If data exceed 255 characters, the rest of the characters will be trimmed.

»

Home | Contact us | Request to publish your help manuals | Request to remove your help manuals