Image is not member AxBarcodeLib.AxBARCODE
I've tried to save my barcode to my folder, but I have some problem..
I got the error in : Dim img As Image = DirectCast(AxBarcode1.Image.Clone, Image)
what should I do ??
BELOW MY CODE
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtnoangg.TextChanged If txtnoangg.Text = "" Then txtnoangg.Focus() : Exit Sub End If AxBarcode1.Text = txtnoangg.Text End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim img As Image = DirectCast(AxBarcode1.Image.Clone, Image)
Dim sv As New SaveFileDialog
sv.Filter = "Image JPG(*.jpg) |*.jpg"
sv.ShowDialog()
If Not String.IsNullOrEmpty(sv.FileName) Then
img.Save(sv.FileName)
LBMNFILE.Text = sv.FileName
End If
img.Dispose()
End Sub
链接地址: http://www.djcxy.com/p/84640.html
上一篇: 实现一个象棋引擎有多难?