easesoft.net | Favorite | Contact Us  
 
 


EaseSoft Barcode DLL


EASESOFT BARCODE DLL FEATURES

Create or Print professional barcode images in applications
It is workable in Word, Access, Excel, Visual Basic, Visual C++, Visual FoxPro, Delphi, C++ Builder, VB.NET and? C#.NET, you can save the barcode as BMP,EMF,GIF,JPEG,PNG and TIFF Fille for the high quality printing.

Supports most barcode symbologies
Code 39, Extended Code 39, Code 128, UCC/EAN-128,Industrial 2 of 5 Planet, Interleaved 2 of 5, Codabar, UPC-A, UPC-E, EAN 13, EAN 8, BOOKLAND,MSI, Code 11, Code 93,Postnet,PDF417,DataMatrix

Printing Support
The EaseSoft Barcode DLL produces high resolution(2400DPI) Enhanced Metafile (vector) graphics that are completely device independent, fully scalable, and will print to the highest resolution of any printer supported by Windows.

Developer Support
The EaseSoft Barcode DLL was created in Visual C++ using ATL, there are no additional runtime dependencies (i.e. MFC Class Libraries or Visual Basic Runtimes).When you distribute your application you only need to include one binary component EaseBarDLL.dll.

USE TILDE CODE TO INPUT CONTROL CHARACTERS

  1. You can input any ASCII character using Tilde code with the format ~ddd, d represents one digit, ddd is the ASCII value of the character. For example, if you enter the text "1234~013~010", then it will converts to "1234CRLF", CR is carriage return character and LF is new line character.
  2. Also you can use the format ~X ( X is any upper case alpha character) to insert control codes (characters with ASCII value 0 to 26). For example, ~@ = NUL, ~A= ASCII 1,~G = BEL (ASCII 7), ~M = ASCII 13 (carriage return).

SYMBOLOGY SPECIFIC NOTES

  1. UPC A, UPC E, EAN 8 ,EAN 13 AND BOOKLAND
    They only can be encoded numeric data, and you can add 2 digits or 5 digits supplement to the end of the string with separator ',' ,For example, "12345678901,12345". UPC A must encode 11 digits, UPC E must encode 6 digits,EAN 8 must encode 7 digits, EAN 13 must encode 12 digits,BOOKLAND must encode 9 digits of ISBN number.

  2. Code 128
    Code 128 will automatically analyse the string to choose a better character set to encode the shortest barcode. The FNC definition in code 128 is as following: FNC1 is ASCII 200, FNC2 is ASCII 201, FNC3 is ASCII 202, FNC4 is ASCII 203.

  3. UCC/EAN-128 input data format:
    (AI)XXXX(AI)XXXX, AI is application identifier number, XXXX is data after AI. For example,(11)040901 means production date Sep 01,2004.

  4. Codabar Start and Stop character:
    It can be A,B,C or D. If you don't input one of them to be as your start and stop character, the default value "A" will be added to the encoding string.

  5. Code 11:
    Code 11 only can encode numeric data(0 to 9),the dash symbol(-). It is also known as USD-8

  6. Code 93:
    Code 93 is a continuous, variable-length symbology,it can encode the full ASCII character set. Code 93 is similar to Code 39. It encodes 47 characters.

EASESOFT BARCODE DLL PROPERTIES ( To set the properties use put_PropertyName, To get the properties valuse use get_PropertyName):

  • AddCheckDigit: Add optional check digit for Code 39, Industrial 2 of 5 and CodaBar, all other symbologies the check digit is mandatory, the default is "Yes".
  • AutoSize:sets a value that determines whether a control is automatically resized to display its entire contents.Default is "Yes".
  • BackColor: Background color, the default is white.
  • BarHeight : the height of the barcode , the default is 500 mils.
  • BarLeftMargin: the space of left margin of the bar , the default is 100 mils.
  • BarTopMargin: the space of top margin of the bar, the default is 200 mils.
  • BarWidthReduction:sets a value for the reduction or gain of the bar width.
  • BearerBars:sets a value determines whether to include bearer bars around the barcode.Default is "False".
  • BorderStyle:sets a value that determines that border style.
  • BorderWidth:sets a value that determines that border width.
  • BottomComment: the comment on the bottom , default value is set to "Copyright EaseSoft".
  • BottomCommentFont: Sets the font of the bottom comment.
  • BottomCommentLeftMargin:the space of left margin of the bottomcomment. The default is 0.
  • BottomCommentTopMargin: the space of Bar bottom to the bottomcomment. The default is 400 mils.
  • ControlHeigth:The barcode image height, default is 1341 mils.
  • ControlWidth: The barcode image width, default is 2258 mils.
  • Font: Set the font for human readable text.
  • ForeColor: Bar color and text color, the default is black.
  • GifCompression: The flag indicates if compress gif format image,default is false.
  • JpegQuality: The jpeg format image quality, valid range is 0 to 100, default is 50.
  • NarrowBarWidth: Sets the bar width of the barcode , the default is 13 mils.
  • NarrowToWideRatio: Ratio of the wide bar to the narrow bar, typically this value is between 2 and 3, the default is 3, it only affects Code 39 , Code 39 Full Ascii , Codaba , Code 25 , I25 .
  • Picture: Returns an IPicture object containing a Windows Enhanced Metafile graphic image of a bar code
  • PngInterlace: The flag indicates if has interlace for png format image, default is false.
  • PngFilter:The value of the png format image filter,valid range is 0 to 10, default is 0.
  • Quietzones:sets a value that determines whether to include quiet zones at barcodes.
  • RasterImageResolution: The resolution of raster image ( pixels per inch),default is 300.
  • Rotation: Rotate the Barcode in clockwise.
  • ShowCheckDigit: Add check digit to human readable text, Code 128 doesn't add check digit to text, default is "Yes".
  • ShowHRText: Indicates whether the barcode human readable text should be displayed or not. For Upc-A , Upc-E, Ean 13, Ean 8, BOOKLAND the ShowText is always "Yes". the default value is "Yes".
  • SymbologyID : the barcode type ,default is code 39.
  • TextToEncode : the data to be encoded for barcode.
  • TextLeftMargin: the left margin of the human readable text, it is disable if the "TextToStretch" is true.the default is 100.
  • TextTopMargin: the space of the bar bottom to the text,default is 50.
  • TextToStretch: sets the value indicating whether the human readable bar code text is stretched to match the width of the bar code itself.
  • TiffCompression: the tiff format image compression value, valid range is 0 to 10, default is 0 for automatic compression.
  • TopComment: the comment on the top.
  • TopCommentFont: the font for top comment.
  • TopcommentLeftMargin: the space of left margin of the topcomment.The default is 0.
  • TopCommentTopMargin: the space of top margin of the topcomment.The default is 0.

PDF417 PROPERTIES:

  • PDFSecurityLevel: The PDF417 SecurityLevel property allows you to select a PDF417 error correction level from 0 to 9 (default = 9 for automatic). PDF417 uses Reed Solomon error correction instead of check digits. This error correction allows the symbol to withstand some damage without causing loss of data. AIM standards recommend a minimum error correction level of 2. The error correction level depends on the amount of data that needs to be encoded, the size, and the amount of symbol damage that could occur.
  • PDFMaxCols: The PDFMaxCols property specifies the maximum number of codeword columns in a PDF symbol. The default value for PDFMaxCols is 0, meaning that program automatically picks the number of columns. It can be set to a value range from 1 to 30.
  • PDFMaxRows: PDFMaxRows properties allow you to set the target number of rows. The default value for PDFMaxRows is 0, meaning that program automatically picks the number of rows. The valid range for this property is 3 to 90.
  • PDFModuleHeight: PDFModuleHeight sets a value for the height of the smallest modules in the PDF417 barcode generated.The recommended value for the Module Height is approximately three times the value for the PDFModuleWidth property. You can set this property to any values greater than 10 mils. The valid range for PDFModuleHeight is between 1 to 100. The default value is 30.
  • PDFModuleWidth: PDFModuleWidth sets a value for the width of the smallest modules in the PDF417 barcodes generated.The recommended value for the Module Width is between 10 and 30 mils. To achieve the best read rate, we recommend that you set to a value which is integral times of the pixels width of the target device (the width of a pixel in the display screen is 13.88 mils and the one in the laser printer is 3.33 mils). The default value is 10.
  • PDFAspectRatio:The PDFAspectRatio determines the overall shape of the PDF417 symbol and is defined as the overall height to width ratio. Higher values for the Aspect Ratio (greater than 1) produce tall, thin PDF417 bar codes and small values (greater than zero and less than 1) produce short, wide bar codes. A value of 1 should produce approximately square bar codes. The default value for this property is 1.
  • PDFTruncatedSymbol:A truncated PDF417 symbol is more area efficient than normal PDF417. By selecting this option, the right hand side of the symbol is removed or "truncated". This option should only be used in clean environments, since it is less immune to damage.

DATAMATRIX PROPERTIES:

  • EncodationMode: the encoding mode that compresses information in the symbol; Default value is E_AUTO, it will automatically to select the best encoding mode to compress the message.
    • E_ASCII: it is used to encode data that mainly contains ASCII characters (0-127). It encodes one alphanumeric or two numeric characters per byte.
    • E_C40: it is used to encode data that mainly contains numeric and upper case characters. C40 encodes three alphanumeric data characters into two bytes.
    • E_TEXT: it is used to encode data that mainly contains numeric and lowercase characters. TEXT encodes three alphanumeric data characters into two bytes.
    • E_BASE256: it is used to encode bytes of data and 8 bit values.

  • DataMatrixSize: sets the format represented by a number; valid values are from 0 (10X10) to 23 (144X144) and from 24 (8X18) to 29 (16X48); This will be automatically determined if the size of the symbol chosen is too small.
  • DataMatrixModuleSize: PDFModuleWidth sets a value for the width of the smallest modules in the PDF417 barcodes generated.The recommended value for the Module Width is between 10 and 30 mils. To achieve the best read rate, we recommend that you set to a value which is integral times of the pixels width of the target device (the width of a pixel in the display screen is 13.88 mils and the one in the laser printer is 3.33 mils). The default value is 10.

EaseSoft DLL Method:

  • CreateBarcodeObject(): Initilize the barcode object, if succeeds,return the handle to the barcode object.
  • DeleteBarcodeObject(void* handle):Delete the barcode object when finish the work.
  • SaveBarcodeImage(String FileName): Save current barcode image to disk with most graphics format ( BMP,EMF,GIF,JPEG,PNG,TIFF). FileName is the full path file name with correct image extension.
  • DrawToDC(HDC hdc, LPRECT lpRect): Draw barcode image to device context. hdc is theHandle to the device context, lpRect is Pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the barcode image is to be drawed.
  • CopyToClipBoard(): This method stores the current image into the clipboard as a Enhanced Metafile.
    You may paste this image into a number of programs (such as Microsoft Word) simply by pressing Ctrl+V or by selecting Edit->Paste from the menu.