Field Properties - Image Tab - Location¶
This input control allows selection of the image to be used in the designer and in the output. Selecting an image file without making its content dynamic or embedded in the report definition makes report distribution more difficult, as the image needs to be in the same location as during development. The path of a selected file can be altered into a relative path, but that raises the question, "relative to what?" Using a function that returns the location and content of the image is a better idea.
Via the function button, you can specify a function to be called that returns the name and location of an image.
A function could be:
Return {?ImagePath}-{Product.Image}
The above function uses a parameter named ImagePath and appends the contents of the Product.Image table content value.
Notes¶
- Image containers will never resize themselves based on the content; make sure the container is large enough to hold the largest image or allow clipping or resizing.