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

Barcode reading goes infinitely and keeps the cpu utilization high

$
0
0

Below is the code snippet which we are used for reading the barcode from tiff file, the portion which is highlighted in red color is the area which causing the issue, once the control get into the method it won’t come out and makes the process utilizing the cpu resource infinitely. Image which is causing the issue is attached with this mail.

       privatestaticstring ReadBarcodeFromTiff(IList<string> images){

         string FileName;

         Image img = null;

          FrameDimension dimension = null;

          BarCodeReader rd = null;

          string barcodeValue = string.Empty;

          Bitmap image=null;

          try

           {

              foreach (var imges in images)

               {

                   FileName = FileFolder + imges;

                  string extension = Path.GetExtension(FileName);

                  if (extension != null)

                   {

                       img = Image.FromFile(FileName, true);

                      Guid guid = img.FrameDimensionsList[0];

                       dimension = newFrameDimension(guid);

                      int totalFrame = img.GetFrameCount(dimension);

                       image=newBitmap(img);

                       rd=newBarCodeReader(image, type: BarCodeReadType.Code39Standard|BarCodeReadType.Code39Extended|BarCodeReadType.Code128);

                      for (int i = 0; i < totalFrame; i++)

                       {

                           img.SelectActiveFrame(dimension, i);

                          while (rd.Read())

                           {

                               barcodeValue = rd.GetCodeText();

                           }

                       }

                  }

               }

           }

          catch (Exception ex)

           {

              ILogger logger = newLogger();

               logger.LogError(ex);

           }

          finally

           {

              if(image!=null)

               {

                   image.Dispose();

               }

              if(rd!=null)

               {

                   rd.Dispose();

               }

              if (img != null)

               {

                   img.Dispose();

               }

           }

 

          return barcodeValue;

       }

Please help me in resolving this issue.

Thanks in advance.


Barcode Failing To Preview In Visual Studio

$
0
0

Hi

I have a named SQL instance and therefore had to install Aspose manually. I have added the control to the toolbox and can create the control on reports. However, when I attempt to preview the report, the control is not visible and I get the following warning...

[rsCRIControlFailedToLoad] The 'BarCode' extension failed to load the extension assembly. The custom reportitem 'BarCode1' will render the AltReportItem or preserve the white space if no AltReportItem is explicitly defined.

Please advise. I am running SQL Server 2012 Standard on Windows Server 2012 Standard 64 bit.

Thanks

Steve

Aspose Barcode Evaluation Version Not Working

$
0
0
Hello, I work for a nonprofit organization and we would like to be able to add barcodes to reports in SSRS. We are interested in purchasing Aspose.Barcode for Reporting Services so I have downloaded the evaluation version using the MSI installer and entered the temporary license key I got on your website. The download was successful and I followed all of the instructions, however, it doesn’t seem to work as simply as the Quickstart Tutorial suggests. I finally figured out how to make the “Aspose BarCode” tool appear in my SSRS toolbox, however, when I drag and drop it into a report column I get the message, "The custom report item type BarCode is not installed." I have looked for answers to this problem in your forums but haven’t found anything helpful. I am using SQL Server 2008 R2. Do you have any suggestions as to why this may not be working?
This message was posted using Banckle Live Chat 2 Forum

QR Barcodes

$
0
0
Hi, good day. 
I am just starting to use QR bar-code. First try works fine. The word Aspose appears on output. Is this normal? Secondly, can you point me to advanced examples showing me how to embed image and include multiple lines. rgs

Multiple barcodes

$
0
0
Can we generate mulitple barcodes in one call to return as an image?

Failed to load expression host assembly (SecurityPermission)

$
0
0
Hi Aspose,

We are trying out your Barcode product, because we need barcodes on our reports. But we experiencing some problems with it.

We always use MS Report Builder 3.0 to design the reports. And we use MS Report Viewer in our Windows Forms desktop application to present the reports to frontend users.

We downloaded a trial version of Aspose Barcode, but we are getting error messages.

In design mode (MS Report Builder 3.0) we are getting this error when running the report:
Failed to load expression host assembly. Details: System.Security.Permissions.SecurityPermission

In frontend application mode (Windows Forms) we are getting this error, when loading the report:
bla bla bla......, which is not a trusted assembly.

Hope that you can help us making it work.

Kind regards
Benny Filtenborg
Accuratech

Two clear barcodes that i can't read using the library

$
0
0
Hi,

I have attached two documents from my client environmnt with barcode on them, One is recognized but the returned value isn't correct, the second one is not recognized at all.

We use the latest version of the library.

Could you help us please ?

Thank you.

Dimitri

How can I generate GS1 DataBar Coupon Barcode, using Aspose.?

$
0
0
I want to generate GS1 Databar Coupon Barcode, so, Is there any functionality is available which can help me to generate this one.?

Export barcode to pdf appears in 4 pages in SSRS 2012, but in a single page in SSRS 2005

$
0
0
Hello, I used barcode product for years in SSRS 2005, now im using SSRS 2012 and the same report which contains a barcode like in SSRS 2005.

The same report appears in 4 pages when i export it to pdf in SSRS 2012. 

Is there a bug in SSRS 2012 or am i missing to set a setting option in barcode settings or in report properties? My report file is attached. 

bar coe is not reading

$
0
0
hi Team,

Please find the sample code and the sample file.
The code is not reading the barcode.

 private List<string> ReadBarcodesFromImage(ACS.PMO.IFOComp.IFOImage image)
        {
            List<string> barcodes = new List<string>();

            // -- get the image path from the IFO
            string FullImageName = image["ImageName"];
            if (FullImageName == null || FullImageName.Trim() == string.Empty)
                throw new Exception("IFO Line With No ImageName Attribute Found.");
            if (!System.IO.File.Exists(FullImageName))
                throw new Exception("Image Not Found At Path '" + FullImageName + "'.");

            //if (FullImageName.StartsWith("\\\\"))
            //    FullImageName = FullImageName.Trim().Substring(1);

            // -- read the barcodes

            Aspose.BarCodeRecognition.BarCodeReader reader = new Aspose.BarCodeRecognition.BarCodeReader(FullImageName, Aspose.BarCodeRecognition.BarCodeReadType.Code39Extended);

            try
            {
              
                string bc = string.Empty;

                // -- loop the barcodes found
                while (reader.Read())
                {
                    bc = reader.GetCodeText().Trim();

                    // -- we want to check the barcode against the regex
                    // -- if we don't find a match, throw this barcode away
                    // -- but only do this logic if they have at least one regex defined
                    if (FRegExpressionList.Count > 0)
                    {
                        string bc2 = bc;
                        bc = string.Empty;
                        foreach (string f in FRegExpressionList)
                        {
                            if (System.Text.RegularExpressions.Regex.IsMatch(bc2, f))
                            {

                                bc = bc2;
                                //need to review this code...checking the regular expression with dcert(if match found)
                                //if (f == DcertRegx)
                                    //GetAllDcertBarCodeDetails(bc);

                                break;
                            }
                        }
                    }

                    if (bc.Trim() != string.Empty)
                        barcodes.Add(bc.Trim());
                }
            }

            finally
            {
                reader.Close();
                reader = null;
            }
            return barcodes;
        }


barcodereader.read() occure InvalidOperationException

$
0
0

I'm use c# (VS2010, dot net ver4.0 client profile).

Barcode.net version is 6.6.0

I was buy it at this week.

and I downloaded it 1st Dec. 2014. ( a few days ago. )

 

first of all, Review simple code.

 

---------  Begin my CODE    -----------------

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Aspose.BarCode;
using Aspose.BarCodeRecognition;

namespace BarcodeReader
{
    public partial class cBarcodeReader : Form
    {       
        cBarcode myBar;
        public cBarcodeReader()
        {
            InitializeComponent();
            myBar = new cBarcode();
            MessageBox.Show(myBar.GetBarcode(@"D:\barcode\TestImg.bmp"));
            this.Close ();
        }
    }

    class cBarcode {
        public cBarcode()   {
            Aspose.BarCode.License lic = new Aspose.BarCode.License();
            lic.SetLicense(@"D:\barcode\Aspose.BarCode.lic");
        }
        public string GetBarcode(string filename)     {
            string ret = "";

            BarCodeReader br = new BarCodeReader(filename, BarCodeReadType.Code128 |
                                                           BarCodeReadType.DeutschePostIdentcode |
                                                           BarCodeReadType.DeutschePostLeitcode |
                                                           BarCodeReadType.QR);
            if (br.Read()) ret = br.GetCodeText();  // get only first code/
            br.Close();
            return ret;
        }
    }
}
---------  Finish my CODE    -----------------

when I run this code (both debug and release mode). I got a  InvalidOperationException  at br.Read().

I don't know why.

please solve it.

Help me.

 

Generate barcode REST API with apperyio problem

$
0
0

 I am developing an app for android , i am using Apperyio development platform ,
in my app , i have to generate barcode REST API from text , i used

http://api.aspose.com/v1.1/barcode/generate?text=Text for new barcode image&type=QR&format=jpg

with my AppSID and Appkey

but alwayes i received an error parsing error
?
How to solve it

 

 

I also add a request parameters which are AppSID, and AppKey

 

But I always receive the same error

 

I had used different websites , but still receive the same error

 

Barcode Not Recognized

$
0
0
Hi,

We are evaulation Aspose Barcode for Java but we are not able to read a barcode from a scanned document, below is the code used:

            BarCodeReader reader = new BarCodeReader("img.jpg", BarCodeReadType.AllSupportedTypes);

            while (reader.read()) {
                System.out.println("codetext: " + reader.getCodeText());
            }
            reader.close();

I have also attached the sample image, can you please advise?

Thank you

Barcode

$
0
0
my project says 
import com.aspose.Barcode.BarCodeBuilder doesn't exist.


i have download and added the aspose barcode for java. im using netbean 7.1

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

PDF417 Bar Code White Space Trimming?

$
0
0
I did a quick search on this forum and I didn't see anything related to this.

I am using Aspose to parse PDF417 bar codes from images I take with a camera.

I was just wondering if the Aspose.Barcode library trims spaces at the end of bar codes after they are parsed.

Are there currently any options for turning this feature off?

Thanks in advance.

Mobile friendly QR code reader

$
0
0
Good day,
I would like to create a QRCode reader with Aspose.barcode. The basic functionality as provided by Aspose examples works fine in ASP. I would like to take it one step further and make this mobile friendly. i.e either be able to take picture with smartphone, upload to server, perform read, etc. and write results to Db and/or other actions. First prize would be an actual App on the device that communicate by means of API but the first option mentioned is adequate. Would appreciate some guidance and example. I have current license for Aspose.total for .NET
kind regards

How to generate GS1 DataBar Expanded Stacked In Java

$
0
0
Hi to all,

I'm trying to generate GS1 DataBar Expanded Stacked barcode. But I cannot found anything which can help me to generate this kind of barcode. This is available or not..? 

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);


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
Viewing all 333 articles
Browse latest View live