I use ADO to access the image from database.I have image display on picturebox.the image fix with picturebox.Code below use to access picture from database.
Code:Picture2.ScaleMode = vbPixels Picture2.Cls Picture2.PaintPicture LoadPicture(Pesttable.Fields("PICTURE")), 0, 0, 150, 150
When I sent the image from picturebox to datareport, Why image not fix with imagebox in datareport?
Code:Private Sub DataReport_Initialize() On Error GoTo error 'show the image from database to prit the form Set Me.Sections("Section1").Controls("Image1").Picture = LoadPicture(Pesttable.Fields("PICTURE")) error: End Sub




Reply With Quote