How to you barcode.invalidcodeexception

Hi Experts,

I wanted to use the invalidcodeexception like this. I deliberatery enter a wrong string and except the invalidcodeexception fires, but instead of that the ArgumentOutOfRangeException fires. I am wondering how to use this exception?

Imports ASPOSE.BarCode
Public Class Form1
Dim myBarcode As New BarCodeBuilder("4045w07469227", Symbology.EAN13)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim pic As System.Drawing.Bitmap = myBarcode.GenerateBarCodeImage()
Catch err As InvalidCodeException
MsgBox(err.Message)
End Try
End Sub
End Class

Hi,


Thank you for inquiry.

The InvalidCodeException class is used correctly in the code and it should have thrown this exception. I have logged this bug in our system (ID: 24128). We will look into it and will inform you when it gets fixed. Sorry for the inconvenience.

The issues you have found earlier (filed as BARCODENET-24128) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.