Hi.
We try to execute following api call to get a barcode, only showing the barcode and no numbers.
Please provide the correct parameters.
Br Jesper
Hi.
We try to execute following api call to get a barcode, only showing the barcode and no numbers.
Please provide the correct parameters.
Br Jesper
To generate a barcode without displaying the numbers on the barcode image, you need to set the code text location to None
. This can be done by using the CodeLocation
parameter in your API call.
Here’s how you can modify your API call to achieve this:
https://api.aspose.cloud/v1.1/barcode/generate?text=3616531385416&type=code39&codeLocation=None&format=JPG&resolutionX=300&resolutionY=200&dimensionX=0.3&dimensionY=2&enableChecksum=Default&appsid=DC0C38A5-9FE6-4396-A347-292E6141E31A&signature=URqSYJUHMb8JPdOL9gNeokymDQI
In this URL, the codeLocation
parameter is set to None
, which ensures that the barcode is generated without any visible numbers.
If you are using the Aspose.BarCode library in your code, you can achieve the same by setting the CodeTextParameters.Location
property to CodeLocation.None
. Here’s a C# example:
using Aspose.BarCode.Generation;
namespace Aspose.BarCode.Examples
{
internal class GenerateBarcodeWithoutCodeText
{
public static void Run()
{
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code39, "3616531385416");
generator.Parameters.Barcode.CodeTextParameters.Location = CodeLocation.None;
generator.Save("barcode_without_text.png", BarCodeImageFormat.Png);
}
}
}
This code snippet generates a Code39 barcode without displaying the code text. You can adjust the parameters as needed for your specific requirements.
Feel free to reach out if you have any further questions!
Nope not correct. It generate barcode with numbers
Since you are using Aspose.BarCode (Cloud) API and your requirement/issue is related to it, so kindly post your query/issue in the relevant cloud forum, so cloud team could evaluate your issue precisely. I tried to move your thread to respective forum but I got an error, so can’t transfer the thread.