While working on reporting, using SQL Server Reporting Service, i ran into an odd issue with the report view format. Eventually figured it out after some research and its sorted, thought it would be a good share to help others in future.
Have you ever stuck with a situation where your SSRS report started showing the "Document Map" by default in the report? And you will have to click on show/hide to remove it from the page each time to view the report on full screen. I found it really annoying, it really is when you have to do this few times in a day, besides your customer can also raise objection.
This happens when you have grouping in your report, SQL add this "Document Map table" option to your report by default that make this appear on the report. Now the first thing you can check to remove this, I did the same, is to go to the group properties and remove the Document Map label entry.
- Open the report in Visual studio
- Select the layout tab of your report
- Right click and edit the group
- Select the general tab, and clear the expression from the Document Map label box.
- Repeat the same step for all the groups you have in your report
The other option is to edit the URL, pass the parameter "rc:DocMap=false" to the URL use to call the report and it will hide the label by default. But obviously it's not a viable option for business user to do this every time they have to access the report.
- Rite click on the layout tab, and click on Open file containing folder
- Copy the original report definition file first, and then rite click and open in notepad or visual studio.
- Search for the "Grouping" instance within the file and remove the label defined for every group: "<label>field….</label>".
- Remove for every group instance you can find within the file.
0 comments:
Post a Comment
Spammers, don't waste your time as the comments will only appear after moderation.