Quantcast
Channel: Aspose.BarCode Product Family
Viewing all 333 articles
Browse latest View live

Same Result not coming after upgrading the Aspose barcode

$
0
0
Hi,

We have problem after upgrading the Aspose Barcode 6.0. In the Aspose previous version result and latest version result are different. I have attached the sample console application to replicate the issue.

Thanks,
Vasanthakumar

Barcodes not scanning under version 5.7.0.0

$
0
0
Hello,

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

$
0
0

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

$
0
0
I'm doing a proof-of-concept on switching to the Aspose barcode library, and I'm having some issues with generating images.  We are printing the barcodes, but we aren't using the direct Print() function because we are adding other information to the page.  Therefore, we're generating an image and then drawing it to the page.

We need the barcode to have a specific size, so we're attempting to use it with AutoSize = False.  But in this mode, the result seems to be a single black box, like the barcode was scaled far too large for the area.  Does the barcode auto-scale to the image size, or do we also have to manually calculate the bar height and ratios to make it fit?

Example code (printing area is about 1.7" wide, so the rect.Width in the example is 170):

Using generator As New Aspose.BarCode.BarCodeBuilder()
                    generator.CodeText = Barcode.Barcode

                    If generator.CodeText.Length = 11 Then
                        generator.SymbologyType = Symbology.UPCA
                    ElseIf generator.CodeText.Length = 12 Then
                        generator.SymbologyType = Symbology.UPCA
                        generator.CodeText = generator.CodeText.Substring(0, 11)
                    Else
                        generator.SymbologyType = Symbology.Code39Standard
                    End If

                    generator.CodeLocation = CodeLocation.Below
                    generator.CodeTextAlignment = StringAlignment.Center
                    generator.CodeTextFont = Font.Clone()
                    generator.CodeTextColor = Color.Black

                    generator.AutoSize = False
                    generator.Resolution = New Resolution(e.Graphics.DpiX, e.Graphics.DpiY, ResolutionMode.Customized)
                    generator.GraphicsUnit = GraphicsUnit.Inch
                    generator.ImageHeight = rect.Height / 100
                    generator.ImageWidth = rect.Width / 100

                    Using img = generator.GenerateBarCodeImage()
                        e.Graphics.DrawImage(img, rect)
                    End Using
                End Using

Thanks,
Brant

How to create a black and white PDF barcode from Java at 300dpi

$
0
0
After following various samples I'm finding that I can't get what I need from the barcode classes.  I need to generate a monochrome image of a text string in PDF417 that is at 300dpi.  The resolution class doesn't seem to make any difference and the images are always being generated as 24 or 32 bit depth.

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

$
0
0
Hi,

We're using Aspose Barcode for Reporting Services on SSRS 2005 platform. Everything was fine till our customer needed to get report outputs also as high resolution TIFF files. Because Aspose Barcode's dpiX and dpiY properties are set to 96 (it should be for pdf), when we get 300 dpi TIFF output using ServerRport.Render method by sending DeviceInfo xml structure, we get a tiny barcode because it's drawn for 96 dpi. (Sample: <DeviceInfo><DpiX>300</DpiX><DpiY>300</DpiY></DeviceInfo>)

As you can see we can not change dpi of barcode to 300 dpi because we need 96 for some cases and adding this dpi information as report parameter is not an option in our case. So what we need is, the barcode component get dpi information from rendering engine dynamically. Is this possible? Or is there a workaround for our case?

Best,
Ali

setTextAlign being reversed for left and middle

$
0
0
I am setting text alignment as follows, but the left align and middle align seem to be reversed.
I am using the java barcode 6.0.0.0 build. Can you verify that these are working as they should?

builder.getCaptionBelow().setTextAlign(Alignment.Left); //This is aligning to the middle
builder.getCaptionBelow().setTextAlign(Alignment.Middle); //This is aligning to the left builder.getCaptionBelow().setTextAlign(Alignment.Right); // This works correctly

Need an Older version of BarCode DLLs

$
0
0
Need to download the BarCode DLLs for version 5.4 .NET  ... there is no download link on the Download page for these. 

Thanks
Chris


GS1 128 for USPS printed label certification

$
0
0

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

$
0
0
Hello,

I have a specific problem with GS1 barcode type. One of our customers wants to print GS1 barcodes, but in some cases the output is not OK. We are using Aspose.Barcode library version 6.4.0.0. I cannot upgrade to the latest version because our subscription lasts only until August 2014.

I did the test with the following value:

   (02)07610848242406(37)1000(400)7023596184 

The Aspose.Barcode.dll library from July this year produces an image which is different from the one that was sent to us from the GS1 department in Switzerland (http://www.gs1.ch/). I attached both images. Do you have an idea why they are different? Or am I doing something wrong with Aspose library? Here is my source code:

   var barCodeControl1 = new BarCodeBuilder();
   barCodeControl1.SymbologyType = Symbology.GS1Code128;
   barCodeControl1.CodeText = "(02)07610848242406(37)1000(400)7023596184";
   barCodeControl1.Save(@"C:\work\backup\barcode_not_ok.bmp", ImageFormat.Bmp);

There is also a freeware online barcode generator which is producing the same result as the one suggested by the GS1 Switzerland:

   http://generator.onbarcode.com/online-gs1-128-barcode-generator.aspx

Do you have any idea what might be the problem? Thank you in advance for your help.

Oliver

How to serialize a GS1 DataMatrix

$
0
0
We're currently created GS1 DataMatrix barcodes with this schema:

(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

$
0
0
We are encountering an issue with Pharmacode recognition. I have reproduced this in a simple test driver and our application. Essentially if the input file has the same barcode but rendered at a different resolution the results are inconsistent. Our application allows the user to select an area of a page (usually a pdf file) and we render that selected area to raster, which we pass to the BarCode library. I have attached three raster images of the same barcode. The first seems to return the correct result, the second (test4.jpg)returns a different value, the third (test5.jpg) returns 4 pharmacodes with different values.

Aspose.BarCode for SQL Server 2014

$
0
0
Hello,

I was using Aspose.BarCode in SSRS 2008 correctly, now i have to use it in SQL Server 2014. I tried all the steps in the link:

http://www.aspose.com/docs/display/barcodereportingservices/Install+Manually

But i couldn't make it work.

Is it unsupported in SQL Server 2014?

Im trying to see a barcode in Sql Server 2014 Report Builder, for now i can't use Visual Studio in the machine im working with. It says : " The custom report item type BarCode is not installed "

Is there anybody to help me?  Thanks in advance.

2D Data Matrix Barcode shows extra information

$
0
0

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

$
0
0
Dear Aspose,

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

$
0
0

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

Aspose BarCode - how to set Caption Above with Aspose text to invisible

$
0
0
Hi,

How to set Caption Above with Aspose text to invisible?
I tried the  
  b.CaptionAbove.Visible = false;

It's still failed.

Please refer attached file for more details

Best regards,
Elvis

Micro PDF417 and Micro QR Code support?

$
0
0
Hi there,

Does the BarCode library support Micro PDF 417 or Micro QR Code?  I'm looking to have the smallest 2D possible and as I understand it, those are a good avenue for me.

Cheers,

Mark

Help to identify the problem Barcode

$
0
0
I am not able to capture the barcode of this image attached.

Need an Older version of BarCode DLLs

$
0
0
Need to download the BarCode DLLs for version 5.4 .NET  ... there is no download link on the Download page for these. 

Thanks
Chris

Viewing all 333 articles
Browse latest View live