2005 IR Help Posted August 25, 2006 Share Posted August 25, 2006 By: David Lim - aberrant80 Disappearing elements? 2004-03-21 19:31 Apparently, if you were to add elements (static text, text field, image) into the detail band AFTER adding a subreport element, they sort of disappear. You just don't see them, not even a clipped portion. Setting position type = float didn't seem to help. Can any1 help me with this? Do I actually have to create yet another subreport and put my static text, dynamic text and image into it before it'll get displayed BELOW the first subreport? By: David Lim - aberrant80 RE: Disappearing elements? 2004-03-22 01:02 Ok, this is started to look really bad. I've created 2 subreports: A: A table of data using the column header and detail bands. B: A simple static text in the title band. What I did: I add subreport A, then subreport B. What I want: Subreport A (the table) to come first. Subreport B to come right below subreport A. What actually comes out: Both subreports overlap each other based on their x and y. My question: IS there any way at all to specify that subreport B should come after subreport A? What exaclty do I have to set? Is there a way to make the x, y and the subreport B relative to the end of subreport A? Please help. This is getting really urgent... Any help/suggestions/ideas all appreciated. By: Teodor Danciu - teodord RE: Disappearing elements? 2004-03-22 02:11 Hi, Don't you use positionType="Float" for the second subreport? Anyway, for this to work, you need to place your subreport one under the other and thei should not touch or overlap. I would let a gap of at least one pixel between them so that the second floats after the first one. I hope this helps. Teodor By: David Lim - aberrant80 RE: Disappearing elements? 2004-03-22 03:35 icic, thanks alot Teodor! Now I understand things better. I got things working hardcoded, now I have to figure out how to calculate relative positions and check for overlaps.... sigh. Could you clarify one more thing? If I have subreport A: x = 0; y = 0; height = 20; subreport B: x = 0; y = 25; height = 20; Will the removeLineWhenBlank attribute work on subreport A? Is there a way to actually get subreport B to shift upwards when subreport A is missing/unavailable/nothing to show? Thanks alot. By: Teodor Danciu - teodord RE: Disappearing elements? 2004-03-22 11:37 Hi, I'm not sure (I don't think) "isRemoveLineWhenBlank" will work in this case. This is because we are talking about a subreport that "will be there" even if it does not display anything. It will work if you would suppress the generation of the subreport A using its <printWhenExpression>. This meas you should know beforehand if it should be displayed or not. I hope this helps. Teodor By: David Lim - aberrant80 RE: Disappearing elements? 2004-03-22 18:49 No worries then. That's not an immediate problem anyway. But I noticed that if I do not actually do a setWidth for my subreports, the float doesn't work. Also, does float work horizontally? One more thing, having again subreport A: x = 0; y = 0; height = 20; subreport B: x = 0; y = 25; height = 20; Subreport B seemed to float very far below subreport A. Probably has to do with it being relative? Is there anyway to specify that I want subreport B to be sticking right below subreport A. By: David Lim - aberrant80 RE: Disappearing elements? 2004-03-22 19:14 Ack! Never mind the floating problem. It's my silly mistake again. But the question about the setWidth and horizontal float... By: Teodor Danciu - teodord RE: Disappearing elements? 2004-03-23 03:04 Hi, The elements have to have a with. The are certain conditions for "Float" to work. The elements have to be one under the other because floating is basically about the upper element pushing downwards the lower one. And if A is too thin (zero with), it does not have the ability to push anyone. I hope this helps. Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now