I use Visual Studio for my RTC reports.
I have two pictures in my body, I use a boolean to know which image is visible or not. Either one or the other. But both images owe beings situated in the same place and repeated on all the pages in the header of a board. But when I stack the images my boards also overlap... What is the problem and how to resolve it?
Thanks
0
Comments
anyway, about your boolean variable: did you add a textbox in your classic report in the correct place, with sourceexpr = yourbooleanvariable?
if so, did you bound this variable to the hidden property of the images? if so, be careful that if hidden property = true, it means that the field is not visible. This is tricky because in classic report, the logic of visibility is reversed...
classic --> visible property
rtc --> hidden property
if all these does not solve your problem, please explain it more clearly, maybe with a screenshot
good luck
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
otherwise if the pictureboxes reserve the space for both of them, even if you don't display the box. (Or if you have these boxes in a table, just put both pictures on their own rows and mange the visibility of the whole row)
but like belias said, a screenshot would be alot better to see where the problem is.
You can see on this picture:
I have two différente images on my report
- One with visibility expression: =IIf(Fields!PictureBool.Value=false,false,true)
- An other with visibility expression: =IIf(Fields!PictureBool.Value=true,false,true)
I have a variable PictureBool (TRUE or FALSE)
I have two bords:
- Table_lines with header line that I repeat on each page.
- Table_TVA
I need to show either one or the other images in the same place.
The probleme is when I stack my images and use the property RepeatWith Table_Lines, the Table_TVA board board settles on the page and overlaps with Table_lines board.
When I place my images as on the image at the top, it works but if I have several pages then on the second page the image changes place.
Otherwise is there a solution to use just one field for my two picture and to choose wich picture is show in the standard?
somethig like
__________
|image1&2
|table1
|table2
|
|
|
__________
Pipelines and underscores represents the list...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
IIf(Fields!PictureBool.Value=true,Fields!<Picture1>.Value,Fields!<Picture2>.Value)
i haven't tried this but it should work.
I have ever try this but it doesn't work, don't know why... :-k
We've spent so much time with classic report designer, that sometimes we're developing rdlc like we would have done with classic
btw, this shouldn't solve the overlapping problem :-k
edit1: oh, i've seen you've solved the problem, but be sure tu try devch solution, too...it is far better
edit2: ok, you tried it...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
(just a hint if someone runs in the same problem)
... anyway good you got it working :thumbsup:
Edit: I gave it a try and it works fine with my initial solution. Here's my code:
OK I try again and it work now... It's a better solution. Thanks :thumbsup: