We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to generate an image using the NetBarcode library. However I get a ArgumentNullException. My code looks like this:
var bc = new NetBarcode.Barcode(code, NetBarcode.Type.EAN13, true); var b64 = bc.GetBase64Image();
Am I doing something wrong, or is there an error in the library? I am running this in Blazor (server side). .NET version 7.0
Thanks in advance!
The text was updated successfully, but these errors were encountered:
If I pass false to showLabel in the constructor, it works fine. It is not blocking my use case now, but I think this is a bug.
false
showLabel
Sorry, something went wrong.
I got the same issue. It seems to happen when NetBarcode can't find a default font to use for text. Try to specify a font for NetBarcode to use.
Edit: In my case, it looks like 'defaultFont' is not null (hence why the null check is skipped), but when trying to print out the name, it's empty.
Barcode.cs, L745
No branches or pull requests
I am trying to generate an image using the NetBarcode library.
However I get a ArgumentNullException.
My code looks like this:
Am I doing something wrong, or is there an error in the library?
I am running this in Blazor (server side). .NET version 7.0
Thanks in advance!
The text was updated successfully, but these errors were encountered: