Support and Docs

3 Topics
Last post 11 November 2014 By Nadja Kristiansen
1 Topics
Last post 20 March 2014 By Carsten E. Madsen
0 Topics
Last post N/A By N/A
0 Topics
Last post N/A By N/A
1 Topics
Last post 02 April 2014 By Carsten E. Madsen

Bar Code Generator

  • 12/11/2014

The eSeller Cloud Bar Code Generator allows you include standards compliant bar codes directly in your website or your order confirmation emails. Bar codes in order confirmation emails can save hours of work in fulfillment and delivery centers and allow for easy and professional packaging of orders.

The Bar Code Generator supports the following bar code standards

  • BAR39
  • BAR39EXT
  • CODABAR
  • CODE11
  • CODE128
  • CODE93
  • CODE93EXT
  • EAN128
  • EAN13
  • EAN8
  • IND25
  • INTERLEAVED25
  • MAT25
  • MSI
  • POSTNET
  • UPCA
  • UPCE

Using the Bar Code Generator

The Bar Code Generator is located at: /services/BarCode.aspx
The Bar Code service takes the following parameters:
BarcodeType: One of

  • BAR39
  • BAR39EXT
  • CODABAR
  • CODE11
  • CODE128
  • CODE93
  • CODE93EXT
  • EAN128
  • EAN13
  • EAN8
  • IND25
  • INTERLEAVED25
  • MAT25
  • MSI
  • POSTNET
  • UPCA
  • UPCE

BarcodeValue: Integer
ImageWidth: Integer, width of canvas in pixels (not the width of the actual barcode, but rather the width of the image element).
ImageHeight: Integer, height of canvas in pixels (not the height of the actual barcode, but rather the height of the image element).
fontSize: Integer, sets the font size of the text (default is 8).
barWidth: Integer, sets the width of a single narrow bar (default is 1).

The rest of the barcode (height, space between bars, wide bar width) is calculated based on the barwidth.

Examples

/services/BarCode.aspx?BarcodeType=EAN13&BarcodeValue=000012341233&ImageWidth=650&ImageHeight=100
/services/BarCode.aspx?BarcodeType=USPC&BarcodeValue=123412341233&ImageWidth=650&ImageHeight=300
BarcodeType=EAN13&BarcodeValue=000012341233&ImageWidth=800&ImageHeight=400&fontSize=12&barWidth=2

Using Bar Codes in Email templates

A Bar Code representation of the order number can be included in the email content design by using the following code

<eSeller:HtmlElement TagName="img">
<eSeller:Attribute Name="src" Value="http://www.SiteName.com/services/BarCode.aspx?BarcodeType=EAN13&amp;BarcodeValue="/>
<eSeller:Attribute Name="src" Value-Of="Data_Order:OrderNumber" />
<eSeller:Attribute Name="src" Value="&amp;ImageWidth=150&amp;ImageHeight=100"/>
<eSeller:Attribute Name="align" Value="right" /> 
</eSeller:HtmlElement>

Note that SiteName should be changed to your domain