ScottGem said:In the ON Format event of the Detail band set the Picture property of the Image control to the image file path.
Private Sub Form_Current()
On Error GoTo HandleErr
If Not IsNull([AmmImage]) Then
Forms!frmAmm![ImgPicture].Picture = [AmmImage]
SysCmd acSysCmdSetStatus, "Image: '" & [AmmImage] & "'."
Else
Forms!frmAmm![ImgPicture].Picture = ""
SysCmd acSysCmdClearStatus
End If
Exit Sub
HandleErr:
If Err = 2220 Then
Forms!frmAmm![ImgPicture].Picture = ""
SysCmd acSysCmdSetStatus, "Can't open image: '" & [AmmImage] & "'"
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
ScottGem said:Yes, I told you where to put it. In the On Format event.
ScottGem said:Check the actual names of the controls on the report and use Me.controlname
richary said:Just a thought (this happened to me) are you sure your printer settings aren't affecting this?
For me, once I changed from Fast Draft to Normal, pictures printed fine. You may want to check your settings. It took me ages to find this out!
ScottGem said:The logic is the same for a report as for a form. You use an unbound Image control and set the Picture property of the control to the path to the image. The only difference should be the actual object names and the use of the On Format event instead of On Current.