In testing I’ve noticed that all of the dynamic barcodes I create contain text. Such as the Apose (header) and the code (footer). I am assuming that since I just have a trial version the Apose will be removed from the top of the image. However, is there a way to specify that the code not be included on the image?
Hi,
Thanks for considering Aspose.
You need to set the license once in your program to remove the Aspose text on the barcode image.
Aspose.BarCode.License license = new Aspose.BarCode.License();
license.SetLicense(@"c:\aspose.barcode.lic");
Please refer to http://www.aspose.com/documentation/visual-components/aspose.barcode-for-.net-and-java/licensing.html for details.
i am using a aspose license file but still sometimes get the text “aspose” in the upper left corner of the barcode image. it does not say aspose.demo and it does not always occur. What could be causing this?
Hi,
Thanks for considering Aspose.
Could you please share some more details e.g. the project type (web, desktop, SSRS), .NET framework that you are using, OS and x86/x64 platform information. And in which part of your program are you setting the license?
Instructions for setting the license are provided at http://www.aspose.com/documentation/visual-components/aspose.barcode-for-.net-and-java/licensing.html.
This is an ASP.NET web application project.
I have resolved this issue. We have a web farm environment with 2 web servers. We are also using the httpHandler renderMethod to generate the bar code. We were setting the license in the page_load event of the control when setting all the properties for the barcode. What was happening is that the license was set on one server and the http handler was serving the image request on the other server where the license was not yet set.
The solution was to set the license in the global.asax application_start method instead of when setting the barcode properties. This ensures that the license is always set for the application and it is only set once during the applcation’s life cycle.
It would be nice if Aspose could provide some documentation on how to use the barcode in an ASP.NET web farm environment. There are a few settings that should be used to avoid problems in this type of environment (use httpHandler renderMethod, set license in application_start).