Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 在访问PictureBox vb net时显示/显示/检索图像(文件路径)_Vb.net_Ms Access - Fatal编程技术网

Vb.net 在访问PictureBox vb net时显示/显示/检索图像(文件路径)

Vb.net 在访问PictureBox vb net时显示/显示/检索图像(文件路径),vb.net,ms-access,Vb.net,Ms Access,我真的对这部分感到困惑。我可以用图片框保存5张图片,但只保存图片所在的文件路径。现在我真的很困惑,把5张图片也显示在图片框里,然后打印出来。有人能帮我查密码吗?我只需要代码来显示我的图片到图片框,但与文件路径和打印他们。请帮助我:(我试过使用这些代码,但我不知道如何将图片检索到picturebox Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.

我真的对这部分感到困惑。我可以用图片框保存5张图片,但只保存图片所在的文件路径。现在我真的很困惑,把5张图片也显示在图片框里,然后打印出来。有人能帮我查密码吗?我只需要代码来显示我的图片到图片框,但与文件路径和打印他们。请帮助我:(我试过使用这些代码,但我不知道如何将图片检索到picturebox

Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.Click
  command.Connection = con
    command = New OleDbCommand("Select * from datagambar Where NoFaktur = '" & nofaktur.Text & "'")
    datareader = command.ExecuteReader
    datareader.Read()
    If datareader.HasRows Then
        PictureBox1.ImageLocation = datareader.Item("FakturInvoice") 'untuk mencari lokasi gambar pada direktori
        PictureBox2.ImageLocation = datareader.Item("SPB&BAPP")
        PictureBox3.ImageLocation = datareader.Item("PurchaseOrder")
        PictureBox4.ImageLocation = datareader.Item("TandaTerimaInvoice")
        PictureBox5.ImageLocation = datareader.Item("FakturPajak")
    Else
        MsgBox("There's No Image For NoFaktur '" & nofaktur.Text & "'")
    End If

数据库中图像的数据类型是什么?图像的数据类型是长文本,路径图像的数据类型是@Richard Baluyut