I have a .RDLC report file which has a table with 14 rows, 4 columns. The fourth column is an image which is set at design time.
One of the parameters stores values which indicate if the image should be displayed or not, here is the expression I use to set if the image is hidden or not
[code]=IIf(Parameters!Services.Value.ToString().Contains("6a"), false, true)[/code]
The 6a part is different for each view (1, 2a, 2b etc...)
My problem is if the code sets the image to hidden (true) then the border of the table cell is hidden also, which makes the report look less professional.
I have checked the XML of the RDLC file and can see that it treats the image as an image, and not as a table cell with an image in it.
So, is there anyway I can still hide the image based on the logic, but keep the border/have an empty cell?
Thanks,
Andrew
Loading
AndrewPosted Jan 5, 2011, 8:34 AM
Exactly what I needed. Cheers
Guest UserPosted Jan 1, 2011, 10:11 PM
AndrewPosted Jan 1, 2011, 3:43 PM
That technique would work and I would be happy to adopt that into the solution, but how exactly do I do that?
My experience with RDLC is only about 3 months, and as far as I know images need to be defined during design time, correct?
Do you have an example of the technique you described?
Thanks,
Andrew
Guest UserPosted Dec 30, 2010, 11:19 AM
AndrewPosted Dec 30, 2010, 3:19 AM
What I need to do is have the cell display itself, as blank if the image is not displayed.
Guest UserPosted Dec 29, 2010, 2:37 PM