G
Guest
I understand that using the Image control, storing the image path in a text
field, and loading the image at runtime is superior (spacewise) to using an
object frame bound to an OLE field, but I have two questions:
1. Since, in my application, it is up to the user to import an image or
leave it empty, how do I hold the place/size of the Image control when it has
no image? Should I just provide a default image of a jpeg that says "No image
selected" and insert that by default and if the user elects to remove the
reference to the image?
2. What if the user moves the image file? What code could I insert in the
report that includes a reference to this image to ensure that the image is
simply omitted if it is not found rather than generating an error? Would this
be:
If Len(Dir(<Stored path/filename>)) = 0 Then...?
field, and loading the image at runtime is superior (spacewise) to using an
object frame bound to an OLE field, but I have two questions:
1. Since, in my application, it is up to the user to import an image or
leave it empty, how do I hold the place/size of the Image control when it has
no image? Should I just provide a default image of a jpeg that says "No image
selected" and insert that by default and if the user elects to remove the
reference to the image?
2. What if the user moves the image file? What code could I insert in the
report that includes a reference to this image to ensure that the image is
simply omitted if it is not found rather than generating an error? Would this
be:
If Len(Dir(<Stored path/filename>)) = 0 Then...?