Print OLE object in report

T

Terry

I have a field for the filename of an image & in the OnFormat event of the
Detail section have a line like:
imgPhoto.Picture = PhotoFile
where imgPhoto is an Image box on the report and Photofile is a text field
in the source table.

This works provided that Photofile is not null.

Setting the .Picture to null raises an error while making it an empty string
leaves the image from the previous record. How do you blank the image box
when the path is null?
Terry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top