简体   繁体   English

如何在rdlc中分别显示每个表记录

[英]How to show each table record separately in rdlc

I am designing a rdlc report. 我正在设计rdlc报告。

Currently the report is displaying as 目前,报告显示为

餐桌风格

Basically it is a grouped date The Schema of group is as 基本上是一个分组的日期。

  • Work Description and No of hours are grouped by project id Work DescriptionNo of hoursproject id分组
  • Then project id is grouped by date of work 然后将project iddate of work分组

I want to show all the grouped records by date separately. 我想grouped records by date分别显示所有grouped records by date Like: 喜欢:

想要的报告设计

So how do i achive this pattern. 那么我如何实现这种模式。

Add a group footer row to the group on your date column. 将组页脚行添加到日期列中的组中。 Then merge all of the cells in that row together. 然后将该行中的所有单元格合并在一起。 (Select all of the cells, right-click, and select "Merge cells"). (选择所有单元格,单击鼠标右键,然后选择“合并单元格”)。

Then you need to turn off all of the border lines for the merged cell. 然后,您需要关闭所有合并单元格的边界线。 This is done a bit differently depending on the version of SSRS you're developing in. But it can always be done from the toolbar at the top. 根据您要开发的SSRS的版本,此操作会有所不同。但是,始终可以从顶部的工具栏完成此操作。

The button you're looking for looks like a square sectioned into quarters. 您要查找的按钮看起来像一个四等分的正方形。 Next to it will be the options for the colour, thickness, and style of the borders. 旁边将是边框的颜色,厚度和样式的选项。 Clicking the box icon will drop-down a menu where you can select "No border" which will set all of the border styles for each side of the cell to "None". 单击框图标将在下拉菜单中选择“无边框”,该菜单会将单元格每一侧的所有边框样式设置为“无”。

If you find you still have a border on the left and right side of the cell it is because there is a border around the tablix control itself. 如果发现单元格的左侧和右侧仍然有边框,那是因为tablix控件本身周围有边框。 Turn off that border and you should get the effect you want. 关闭该边框,您应该会得到想要的效果。

You may need to mess with the border properties of some of the nearby cells if you're having issues. 如果遇到问题,可能需要弄乱附近一些单元格的边框属性。 I've always found working with the cell borders in SSRS to be a bit fiddly but you the design you're after is certainly possible. 我一直发现使用SSRS中的单元格边界有点麻烦,但是您可以按照自己的意愿进行设计。


Another way to achieve this would be to nest the table control inside of a list control and group the list control on the date. 实现此目的的另一种方法是将表控件嵌套在列表控件内,并在日期上对列表控件进行分组。 Add a bit of space below the table before the edge of the list. 在列表边缘之前的表格下方添加一些空间。 That way when the list repeats the table there is a space between them. 这样,当列表重复该表时,它们之间就会有一个空格。

The table will only show records that are in the current group for the list control so you don't need to add any additional filtering on the table. 该表将仅显示列表控件的当前组中的记录,因此您无需在表上添加任何其他筛选。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM