已答覆 Embedded Images / Sub Reports

  • Tuesday, June 28, 2005 10:06 PM
     
     

    I can now get an embedded image to display on the report.
    How would I promatically get it to display a different image in a table.
    For instance if row one has 1 then show a Smiley Face in row 1.
    If row 2 have a value of 2 then show a Frown Face in row 2.

    Sub Reports

    How do i setup what displays in a sub report and how do I populate it?

    Thanks

All Replies

  • Wednesday, June 29, 2005 4:49 AM
    Moderator
     
     Answered
    Assuming you have an embedded image with the name "SmileyFace" and another embedded image with the name "FrownFace", then for the Image.Value expression you would use an expression similar to this:
    =iif(Fields!Rating.Value = 1, "SmileyFace", "FrownFace")

    -- Robert