Same Result not coming after upgrading the Aspose barcode
Barcodes not scanning under version 5.7.0.0
We bought Aspose.Barcode some years ago and our license has expired. We are having problems with some Code128 barcodes not scanning with version 5.7.0.0. Usually it works, but every so often it won't recognise a barcode or two.
My boss will pay to renew our license fee & update to the latest version, but only if it will fix the problem we are having. I have attached two example barcodes that are not working under v5.7.0.0
Could you please confirm that the two attached barcodes scan correctly with the latest version of Aspose?
We are using .NET Framework 2.0 (VB.NET, Visual Studio 2012, WinForms)
Thanks.
Aspose.BarCode validate the barcode size on the images
Hi:
We have bought a Aspose.BarCode Product licence for our company. Actually we have a C# 2008 windows application which reads the barcodes on the images. Now we would like to validate the barcode size on the images. I mean validate if the barcodes meets with an specific size.
It is possible to validate the barcode size for the images with Aspose.BarCode component?
Could you please send me an example?
Thanks.
Denis Mazariegos.
Problems With Specific Size Image Generation
How to create a black and white PDF barcode from Java at 300dpi
Here's a sample that doesn't work. If anyone has suggestions on what to add or change I'd appreciate the help.
BarCodeBuilder builder = new BarCodeBuilder();
builder.setAutoSize(true);
builder.setSymbologyType(Symbology.Pdf417);
builder.setCodeText(valueOfBarcode);
builder.setxDimension(2);
builder.setyDimension(6);
builder.setDisplay2DText("");
builder.setCodeLocation(CodeLocation.None);
builder.setResolution(new Resolution(600, 600, ResolutionMode.Customized));
builder.setBackColor(Color.WHITE);
builder.setForeColor(Color.BLACK);
builder.setImageUnit(BarcodeGraphicsUnit.Pixel);
builder.setGraphicsUnit(BarcodeGraphicsUnit.Pixel);
builder.save(baseDirectory.getAbsolutePath() + File.separator + fileName + ".tif", com.aspose.barcode.BarCodeImageFormat.Tiff);
Problem with barcode resolution
setTextAlign being reversed for left and middle
Need an Older version of BarCode DLLs
GS1 128 for USPS printed label certification
I am working with USPS to get certified so our company can start printing our own tracking labels using the Aspose Barcode lib. But their test results show that the barcodes I've generated have a Code B and Code C Start and Stop in the barcode (even though I've not specified it in my code). Below is my source code (the code text is (420)921170000(93)14890144258200146810 below is the response from USPS
<Code B> Not allowed with USPS Code 128
<Code C> <Code B> Not allowed with USPS Code 128
<Code C>
Source code is shown below...
Dim lic As New Aspose.BarCode.License
Dim sPN As String = sBarCode
Dim sFile_Barcode As String = "c:\temp\barcode_temp_" & sPN & ".jpg"
lic.SetLicense(My.Settings.aspose_lic)
'--------------------------------------------------
'Create the 1D bar code
br.CodeText = sPN
br.CodeTextColor = System.Drawing.Color.White
br.CodeLocation = Aspose.BarCode.CodeLocation.None
br.SymbologyType = Aspose.BarCode.Symbology.GS1Code128
br.BarHeight = 20
br.xDimension = 0.6F
br.GraphicsUnit = System.Drawing.GraphicsUnit.Millimeter
br.Save(sFile_Barcode, Aspose.BarCode.BarCodeImageFormat.Jpeg)
Wrong GS1 barcode output
How to serialize a GS1 DataMatrix
(FNC1 + 01 + 0 + GTIN (13 NUMBER) + 17+ YYMMDD + 10 + LOTnumber + FNC1 + 21 + SERIAL NUMBER)
For the replacement of FIRST FNC1 code = please put ASCII code number 232 ,
For the replacement of SECOND FNC1 code for carton = please put ASCII code number 29 ,
What is the best way to send the second FNC1 to the Aspose.Barcode dll? The first FNC1 is created by the system and we don't have to pass it to the dll. I've tried sending CHR(29) through a small VBScript and get returned "Invalid string".i.e. barcodeWrapper.codeText = trim(Replace(txtValue,"FNC1",CHR(29)))
Thanks,
- Al
Inconsistant results for Pharmacode recognition, depending on zoom level
Aspose.BarCode for SQL Server 2014
http://www.aspose.com/docs/display/barcodereportingservices/Install+Manually
2D Data Matrix Barcode shows extra information
I'm using a 2D datamatrix barcode which is added to the first page of each mailing I'm creating.
The mailings (printed copies) are processed by our Pitney Bowes inserter machine http://www.pitneybowes.com/content/dam/pitneybowes/us/en/legacy/assets/us/docs/DI900-and-DI950-Inserter-Brochure.pdf .
The inserter reads the 2D barcode to determine how many pages the current mailing contains. It then counts out the number of pages, folds and stuffs the contents into a envelope.
The problem is that the inserter is reading extra digits (information) in the 2D barcode which I didn't include/encode. Thus the inserter does not get the correct page count. I only encode the page count (a integer value) in the 2D barcode (nothing else).
I'm not sure what those extra digits included in the 2D barcode are for; and the technician at Pitney Bowes cannot configure the inserter with this extra information in the 2D barcode. The inserter attempts to read 2 spaces with 4 bits. Also when I scan the 2D barcode with a phone app I don't see the extra information (I only see the page count).
I've included snapshots of the data being read on the inserter. Snapshot1 shows the 5 page count and then extra space and extra digits/information (5 051). Snapshot2 shows the 15 page count then a extra space and extra digits/information (15 05).
I've also included the same samples the Pitney Bowes tech used to generate the snapshots. The 2D barcode is located in the lower right corner of the page. Sample1.pdf is a 5 page count and sample2.pdf is a 15 page count.
Please let me know what I'm doing wrong (or not including in my code). I'm using version 6.7 of the aspose barcode lib.
Below is the code used to create the 2D barcode.
Dim b As Aspose.BarCode.BarCodeBuilder
Dim lic As New Aspose.BarCode.License
Dim mem As System.IO.MemoryStream
Dim mPageCount as integer
mPageCount = 5
lic.SetLicense(My.Settings.aspose_lic)
mem = New System.IO.MemoryStream
b = New Aspose.BarCode.BarCodeBuilder
b.SymbologyType = Aspose.BarCode.Symbology.DataMatrix
b.CodeText = mPageCount
b.CodeTextColor = Drawing.Color.White
b.Save(mem, Aspose.BarCode.BarCodeImageFormat.Jpeg)
Code128 barcode recognition and checksum problems with Aspose 6.8.0.0
Please refer to the attached files (five barcode images and two screenshots).
We are having problems with Code128 barcodes incorrectly reading under Aspose.BarcodeRecognition 6.8.0.0.
This is of great concern to us, since we would rather Aspose return no value, rather than the wrong value. If there is no value returned, the operator can type in the barcode value manually, but if the wrong value is returned, the image gets processed automatically and no-one knows that the barcode scan was incorrect.
We are using VB.NET WinForms in VS2012. We are also explicitly setting the property
reader.ChecksumValidation = Aspose.BarCodeRecognition.ChecksumValidation.On
1. Without any ImageBinarizationHints, the attached barcodes are giving incorrect results (see LineCodesRestorationOff.png)
2. If we set
reader.ImageBinarizationHints = Aspose.BarCodeRecognition.RecognitionHints.ImageBinarization.LineCodesRestoration
we get better results, but one barcode is still giving the wrong value (see LineCodesRestorationOn.png).
3. We were surprised that the bad values would survive the code128 checksum, so we implemented a Code128 checksum function ourselves and compared it to the result returned by reader.GetCheckSum As far as we can tell, Aspose is not verifying that the Code128 checksum is correct, and therefore not detecting bad reads as a result. See the "ChecksumActual" and "ChecksumExpected" columns in both screenshots.
Could you please investigate this? Our Code128 checksum code is as follows:
''' <summary>
''' Calculates a Code128 checksum. For debugging.
''' </summary>
''' <param name="strData"></param>
''' <returns></returns>
''' <remarks></remarks>
Friend Function Code128Checksum(strData As String) As Integer
Dim x As Integer
Dim checkDigit As Integer
For i As Integer = 1 To Len(strData)
x = Asc(Mid(strData, i, 1)) - 32
checkDigit = checkDigit + (x * i)
Next i
checkDigit = checkDigit Mod 103
'convert to Windows-1252 code point
Select Case checkDigit
Case 0 To 94
Return checkDigit + 32
Case 95 To 102
Return checkDigit + 105
Case Else 'error
Throw New Exception("modAsposeBarcode.Code128Checksum: Unexpected case")
End Select
Return checkDigit
End Function
Problem with barcode recognition
i'm not able to make the barcode reader get the code from the image.
This is my code
Dim
license As Aspose.BarCode.License = New Aspose.BarCode.License()
license.SetLicense(
"Aspose.BarCode.lic")
Dim reader AsNewBarCodeReader("C:\Users\nem\Pictures\Barcode\IMG_3297B.JPG")
'reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.ComplexBackground
Dim stCode AsString = String.Empty
DoWhile reader.Read()
stCode = reader.GetCodeText()
Loop
Dim s AsString = stCode
v