Change display picture in if condition

Hello,

I have two pictures that I need to display based on a if condition.


if test1

display image1

else

display image2


Ho can I do this in the report code?


Thanks for your help.

Comments

  • LurkingKiwiLurkingKiwi Wellington, New Zealand

    You could put two image components in the same place, and in the before print event, switch the visibility of them depending on your condition.

  • OK, LurkingKiwi.

    This is a very good idea.

    Thanks so much.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.