We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Important General question

I am using aspose.barcode in an application developed in ASP .NET, the application is supposed to convert an account number into a barcode.

Code (please note that I am not passign any barcode type in my code - i.e. 128a/b, 39 a/b, etc):

aNumber = Request.QueryString("account")

Dim captionA As Caption = New Caption()

captionA.Text = "Account Number"

captionA.TextAlign = System.Drawing.StringAlignment.Near

captionA.Visible = True

BarCodeWebControlAccount.CaptionAbove = captionA

BarCodeWebControlAccount.codetext = aNumber

Dim license As Aspose.BarCode.License = New Aspose.BarCode.License()

license.SetLicense(Server.MapPath("\operations\BarCode\Bin\Aspose.BarCode.lic"))

Question:

1. If you look at the code, I am not passing any information about what type of barcode to be used (i.e. 128 a/b, 39a/b, etc). In this case, what is the barcode that your system uses by default ?

2. Can you explain to me how your system works? I send you the variable's value (account number) and the license information. What happen, in terms of communication back and forth with my page, once it is received from you and how is the information sent back to be displayed in my page?

Thanks for your help,

Dear melin,

Thanks for your considering Aspose.

1. By default the barcode symbolgy type is Code128, which means if you do not set the barcode symbology, the barcode image will be Code128 barcode.

How to set symbology type of barcode.

BarCodeWebControlAccount.SymbologyType = Symbology.Code39

2. Once you set the property of BarCodeWebControl, the BarCodeWebControl will generate the barcode images on your web pages.

What type of 128 is the default? a? b?

1. What type of code128 is the default ? (a, b, c, etc).

2. Does the library need to be updated periodically ? If so, how often and how? or does it refresh itself?

I am coming accross an issue here.

The string that I am converting into barcode is 9 digits max. However, for few of them, When I print the page the image looks good but when reading the barcode with the scanner it is only reading the first 7 digits. This is not happening with all the barcodes only with few of them.

Any idea what could be happening? (and please answer to what type of 128 is the default)

Thanks

Hi melin,

Thanks for your post!

The BarCodeBuilder has a “Code128CodeSet” property, it represents the current code set , by default it was set to “Code128CodeSet.Auto”, that means it will optimize arithmetic to encode the data, which will use the shortest encoding result.
The Enumeration Code128CodeSet can be the following value:

  • A: Specifies code set A should be used to encode the data in the CODE128 specification.
  • B: Specifies code set B should be used to encode the data in the CODE128 specification.
  • C: Specifies code set C should be used to encode the data in the CODE128 specification.
  • Auto: Specifies using the embedded optimized arithmetic to encode the data, which will use the shortest encoding result.

And for your second question, do you wonder how to get the new version of Aspose.BarCode? If so, you can find the most recent release of it from the link Aspose.BarCode for .NET.

About the reading problem, it seems a little strange. Could you please send the code to guangzhou#aspose.com so that I can trace the problem?

Thanks

I have sent the email with the code to guangzhou@aspose.com as you requested it.

I look forward for your reply.

Thanks,

Mellina