New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

Aztec doesn’t support symbols that are all binary


Hi,

When trying to encode the values 0x00:0xFF via Aztec Forms Control using the following code …

Bitmap outputImage;
using (var barcode = new AztecBarcode (true))
{
barcode.DoPaint = false;
barcode.DataToEncode = new string(Enumerable.Range (0,256).Select (integer => (char)integer).ToArray ());

barcode.Resolution = AztecBarcode.Resolutions.Custom;
barcode.ApplyTilde = false;

barcode.DoPaint = true;
outputImage = (Bitmap)barcode.BMPPicture.Clone ();
}

…we get a barcode with different modes (Byte and Text-Modes mixed):

image

This barcode consists of different modes:

binary: 0x00
text: from 0x01 to 0x0d
binary from 0E to 1A
text: from 0x1B to 0x7A
binary from 7B to FF

What we would want to achieve is a symbol that has only byte encoding mode. This can be achieved for the given data, as can be seen in this barcode:

image

where the data is all binary from 0x00 to 0xFF (except for the leading "demo" string

kind regards,
Roman Brandstetter


04-03-12     12.4 year(s) ago    

  Report Abuse

 

Tim

Best Answer

Roman,

The source code was based on the source provided by HHP, who created the Aztec symbol. This code switches between encoding modes to produce the most efficient symbol possible.

I ran some tests on the "*DEMO*" barcode provided and created one with our control. Here is a snippet of what I did to set the data to encode property so I could match the same data as the sample.
string byteData = "";
for(int i = 0; i < 256; i++)
{
byteData += (char)i;
}
aztecBarcode.DataToEncode = "*DEMO*" + byteData;

I scanned both with print quality assessment which gives the number of modules of the scanned symbol in the output. While both barcodes scanned with the same data, the sample barcode has 61x61 modules, and our control produces a 57x57 module symbol.

This is by design, if you would like to edit the source by only doing byte encoding, I suggest editing the BestPattern method which makes several calls to the Member method which makes these decisions on when to switch encoding modes.

Posted 12.4 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (3)
In this example, I wanted to encode all possible byte values (0x00,0x01,0x02 ... 0xFF)
The generated barcode should be an all-binary barcode not containing any codewords in text mode.

kind regards,
Roman Brandstetter

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
What is the complete data that you are attempting to encode?

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
The question is under review: Sent message through email.

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook