May 8, 2009 at 8:47 am
I am moving my reports from access to SSRS. In access we have some text in "Report Header " which should appear only at first page. But Page header should not display on First page. In case of static Report Header, we can achive this functionality by setting the "Display On First Page" property of Page Header. But I have some reports in which visibilty of report header depends upon user preferences. In that case when User sets the Report Header Visibilty to false, Page Header is not displaying on first page (because of my setting). I can not control the setting of Page header by formula, like when reportheader will be hidden then page header should appear on first page.
How Can I achive this functionality
May 8, 2009 at 11:58 am
I think I am following what you are looking for. Perhaps what you need is not something that turns on and off the headers but changes what appears there depending on the page / parameter what about something like:
Iif(Globals!PageNumber > 1, True, False)
in the "Hidden" field of the different items you have in your page header.
May 8, 2009 at 9:18 pm
Thanks for replying.
But using this, space taken by page header will not supress.
I have almost 1.5in long page header.
Is there any way to supress space too?
May 11, 2009 at 8:46 am
When everything is hidden(going on memory here) it seemed that it collapsed. Perhaps there is a rectangle, or some other item taking up the space that is not hidden?
July 27, 2009 at 8:42 am
I'm having the same problem, where the page header area doesn't suppress on subsequent pages. After the above comment, I tried to set all of the controls within the rectangle to have them be invisible when the page wasn't the first one. I still had that empty space on subsequent pages.
Please someone help us! 🙂
Thanks,
Amy
July 27, 2009 at 12:07 pm
I found some place that you need to set the report properity 'consumecontainerwhitespace' to true, but the rdlc report properties doesn't have that property listed. Does anyone have any ideas of what can be done to suppress white space?
Thanks,
Amy
July 27, 2009 at 1:31 pm
Amy, I have not run into this issue myself, however I have had some crazy things happen when using rdl files. My suggestion was based on what I could find on short notice, not an actual,tested,solution. I have, for all practicalities, no experience using rdlc files. I don't know what the differences would be.
So you have made all these changes, and still the whitespace. Is it the same size, smaller, larger? What happens when you leave something in there that is very small? What happens if you turn off the header completely? What about using the code that I provided up there but change it so something would show up on every page other than the first page, in essence creating your own 'report header' logic?
July 28, 2009 at 6:21 am
Hi Wesley,
Yes, I did use the logic for the hidden expression and that's why I have white space on the subsequent pages. I put that expression on every single control and that didn't seem to matter. The user interface is very different for the rdl and rdlc files. Microsoft and the books only document the rdl way, so you wind up tinkering with the interface and options to figure out how to create a rdlc report. Unfortunately you have to use a rdlc report if you want to create a web page that uses the report viewer.
Thanks,
Amy
PS. If I figure it out, I'll post the answer.
July 28, 2009 at 8:40 am
The more I think about this, the more familiar it seems. I have had to find workarounds for a few different things that seemed like they should have been part of the package, like paging.
Perhaps, if you get rid of the headers completely, then add your controls in with the logic to show one on the first page while hiding the other, and then for the rest of the document, hiding the first control while showing the others.
July 28, 2009 at 9:30 am
July 29, 2009 at 1:17 am
Thanks for your suggestion Grasshopper.
But just because we are facing some issues in some reports,
we can not change our complte reporting tool and architecture.
How can we display and hide controls for particular page number?
Global!pagenumber is not accessable in body section.
July 29, 2009 at 8:27 am
Hmm, you're right, I just checked. I'd have to do some more searching. Just one more of those things you'd expect would be there that isn't.
July 29, 2009 at 8:46 am
Hi Wesley,
That's a great idea, but when I tried that I got the error '... Global Variables can be used only in the page header and page footer.
Would you know how SSRS 2005 handled Report Headers?
Thanks,
Amy
July 29, 2009 at 9:11 am
Okay I tried a few things that you think would logically work. They didn't. I did come across this page, didn't take time to try it out.
"Continued" Header on Subsequent Pages
Perhaps getting rid of the page headers completely and doing the headers in the group headers. Anyway, that's the scope of that link. I think that may be helpful.
July 30, 2009 at 4:47 am
But problem with Group Header is, It does not repeat for group footer or if you have very long sub report which comes across more than one page.
Thats why I took Page Header intially
Viewing 15 posts - 1 through 15 (of 18 total)
You must be logged in to reply to this topic. Login to reply