I do an on format function that basically renders an image. I have a sub form that contains only an Image place holder that I properly size.
In the main report, I place that subreport and also provide a field with the Image file path. In VB I have written this simple code.
' Verifies that the imagepath is not null
If IsNull([ImageFilePath]) Then
[SubReport].Report![ImagePlaceHolder].Picture = None
[SubReport_Image].Report![ImagePlaceHolder].Visible = False
Else
' Verifies that the imagepath is valid for this system
If Not (Dir([ImageFilePath]) = "") = 0 Then
[SubReport].Report![ImagePlaceHolder].Picture = None
[SubReport].Report![ImagePlaceHolder].Visible = False
Else
[SubReport].Report![ImagePlaceHolder].Picture = [ImageFilePath]
[SubReport].Report![ImagePlaceHolder].Visible = True
End If
End If
I hope this helps