Hi,
I have a report which I am trying to insert an image.
Sometimes there is an image to be loaded or sometimes the cursor driving the report does not have an image to load
Now this works OK when there is an image, but when the there is no image it fails
In the report control I have tried variations of the below code in the control source (Set to expression/variable)
For some reason the control MUST have an image to load otherwise there is an error
I could go down the road of having a dummy jpg file, but I would rather not, unless there is another way
I have a report which I am trying to insert an image.
Sometimes there is an image to be loaded or sometimes the cursor driving the report does not have an image to load
Now this works OK when there is an image, but when the there is no image it fails
In the report control I have tried variations of the below code in the control source (Set to expression/variable)
Code:
iif(empty(cReport.Image1file),"",cReport.Image1file)
For some reason the control MUST have an image to load otherwise there is an error
I could go down the road of having a dummy jpg file, but I would rather not, unless there is another way