图像不是成员AxBarcodeLib.AxBARCODE

我试图将我的条形码保存到我的文件夹,但我有一些问题..

我得到了错误: Dim img As Image = DirectCast(AxBarcode1.Image.Clone, Image)

我该怎么办 ??

在我的代码下面

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/84639.html

上一篇: Image is not member AxBarcodeLib.AxBARCODE

下一篇: Send Bulk Email in VB.NET Reciepients Emails will uploaded by excel