Cannot remove "Aspose" caption above Barcode

I’m trying to print a barcode without a caption or text above or below, but I cannot find the way to remove the “Aspose” title above.

Here’s my code and attached is a sample file with the result:

PLEASE ADVISE.

BarCodeBuilder builder = new BarCodeBuilder();
MemoryStream imgStream = new MemoryStream();
builder.SymbologyType = Symbology.Code128;
builder.ImageQuality = ImageQualityMode.Default;
builder.CodeText = “123456”;
builder.CodeLocation = CodeLocation.None;
builder.CaptionAbove.Visible = false;
builder.Save(imgStream, ImageFormat.Bmp);
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
Section section = pdf.Sections.Add();
Aspose.Pdf.Image paragraph = new Aspose.Pdf.Image(section);
paragraph.ImageInfo.ImageFileType = ImageFileType.MemoryBmp;
paragraph.ImageInfo.OpenType = ImageOpenType.Memory;
BinaryReader reader = new BinaryReader(imgStream);
imgStream.Position = 0L;
paragraph.ImageInfo.MemoryData = reader.ReadBytes((int)imgStream.Length);
section.Paragraphs.Add(paragraph);
pdf.Save(“c:\BarCode.pdf”);
imgStream.Close();

Hi George,


Thank you for your inquiry. It is because you did not apply a license. This is evaluation mark and you will not see this mark when the product will be licensed. There are also some evaluation limitations. You can avoid evaluation limitations by getting a temporary license for 30 days and try the latest version at your end. Please visit download page here:
Aspose.BarCode for .NET (Latest Version)

You can learn all about how Aspose products are licensed by checking out the Licenses FAQ here: http://www.aspose.com/corporate/purchase/faqs/default.aspx
http://www.aspose.com/docs/display/barcodenet/Licensing

Hi George,


Thank you for sharing details through email.

I could not find your license file as an attachment because I’m facing error message like “This attachment was removed because it contains data that could pose a security risk”. Could you please make a zip file of your Aspose license and send me again? Second, I observed that you are now applying a license for Aspose.Pdf library. Actually, you need to apply a license for each Aspose library separately. You do not need to copy and rename total license file for each Aspose library. Anyways, you need to add a couple of lines of code to apply the license for each library.

For example you can create a common directory and use it to easily set the license for different libraries.

//Instantiate an instance of license
and set the license file through its path
<o:p></o:p>

Aspose.BarCode.License license = new Aspose.BarCode.License();

license.SetLicense(@"C:\Projects\Common\Aspose.Total.lic");

Aspose.BarCodeRecognition.License lic = new Aspose.BarCodeRecognition.License();

lic.SetLicense(@"C:\Projects\Common\Aspose.Total.lic");

// Create a PDF license object

Aspose.Pdf.License license = new Aspose.Pdf.License();

// Instantiate license file

license.SetLicense(@"C:\Projects\Common\Aspose.Total.lic");


Another way, you can include it as an embedded resource. To include the license file as an embedded resource, please visit our documentation page here.


Please let me know in case of further assistance and comments.


Imran:

I sent to you again my Aspose.Total.lic license file, zipped. Is there any issue with the license file that is not allowing me to use the Aspose.Barcode?

My guess is that there’s a license issue here.

I already ran the code setting the license for both Aspose.Pdf and Aspose.Barcode as you suggested and got the same results.

PLEASE ADVISE.

Thanks,

Jorge

Hi George,


Thank you for sharing the license file. I tested your license file against the latest version of Aspose.BarCode for .NET 5.4.0 and did not find any issue on my side. I can generate a barcode without the evaluation mark. I’ve attached a sample barcode image generated by using your license file.

Aspose.BarCode.License
license = new Aspose.BarCode.License();<o:p></o:p>

license.SetLicense(@"C:\AB\test35\Aspose.Total.lic");

BarCodeBuilder builder = new BarCodeBuilder();

builder.SymbologyType = Symbology.Code128;

builder.ImageQuality = ImageQualityMode.Default;

builder.CodeText = "123456";

builder.CodeLocation = CodeLocation.None;

builder.CaptionAbove.Visible = false;

builder.Save("C:\\AB\\test35\\test.bmp", ImageFormat.Bmp);


I hope this will help you.