I'm new to CF Report Builder and having trouble determining
how to get a dynamic image to display in the detail band. The query
for the report correctly returns the image file name, but the
following expression doesn't display the image although the path is
correct.
IIf(query.image NEQ "", DE("../images/smProds/" & query.image), DE("None"))
When I run the report, I get just .. in the space where the image should display if one is available and the text "None" if the field is empty. I found a tutorial on Report Builder that suggested using similar code, but it didn't provide an actual example. Using their code produced the same lack of results.
I've tried various versions of this with no success yet. Am I missing something about how to include an image in the report? A static image in the report uses the same basic path information. Of course that image name and path aren't being generated from an expression, it is just an inserted image and it shows up in the header and footer bands as expected.
Thanks for any guidance.
IIf(query.image NEQ "", DE("../images/smProds/" & query.image), DE("None"))
When I run the report, I get just .. in the space where the image should display if one is available and the text "None" if the field is empty. I found a tutorial on Report Builder that suggested using similar code, but it didn't provide an actual example. Using their code produced the same lack of results.
I've tried various versions of this with no success yet. Am I missing something about how to include an image in the report? A static image in the report uses the same basic path information. Of course that image name and path aren't being generated from an expression, it is just an inserted image and it shows up in the header and footer bands as expected.
Thanks for any guidance.