Hey Spirits,
How about changing your SQL query to something like this:
SELECT imgImage, CASE WHEN imgImage IS NULL THEN 0 ELSE 1 END AS
bitImageExists
FROM tblSomethingImage
And then set the Hidden expression for the image to
"=IIf(Fields!bitImageExists.Value = 1, False, True)"?
Cheers,
-Geoff R G Williams
Primal Blaze Ltd.
[quoted text, click to view] "** Spirits **" <muhammadhammad78@gmail.com> wrote in message
news:1124863203.576215.182520@g47g2000cwa.googlegroups.com...
> well i ve an image field in database and then using an image in a
> report that is connected with the image database field (carrying image
> details in bits) what i want is to hide the image in report when the
> image field in database is null (image database field is 0x00 when it
> contains NO IMAGE)
> i m trying to put following expression in the HIDDEN property of the
> IMAGE in the report :
> =iif(Fields!image.value=NOTHING,true,false)
>
> but it says that this expression cant b put probably (rather surely)
> coz of the datatype of image database field (BIT) so plz help me out
> how to do that i ve also tried
> iif ( isnothing(Fields!image.value)=NOTHING,true,false)
> then it doesnt give error but it always return NON-NULL VALUE (ie
> always returns false part of the expression) even the image database
> field is EMPTY is (0x00)
> how to resolve that issue any suggestion
> thanx in advance
>