Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
Inserting blank image/no image in report if DB field is null.
posted

Working on a report where I import a user's signature as an image from a db and put it in the report. Not all users have signatures in the system, so in those cases I get a red 'X' on my report. Is there a way for infragistsics to just not put an image on the report if the field is null?

I'm thinking something like this:

If(IsNull(First(Fields.Signature, DataSources.MyDB)), ????, First(Fields.Signature, DataSources.MyDB))

But I don't know what to use in the '????' place.

 

Parents
  • 138253
    Offline posted

    Hello Tyler,

    Thank you for your post. I have been looking into it and I can say that you can bind the Visibility of the Image. You can set the Expression like this:

    =IsNull(Fields.Photo)

    Where Photo is the name of the Field which contains the byte[] of the image. This way if the Field is null the image will be hidden and there won’t be any red “X”. Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.

Reply Children