SSRS tablix Merging cells vertically problem

余生长醉 提交于 2019-11-27 20:35:07

问题


I found the colspan and rowspan property defined in TablixCell,but in report Designer still can't vertical merge cells,if i modify the RDL xml file manually set Rowspan,the reportViewer show me error info:RowSpan must be 1 for CellContents inside a TablixCell.

is there any other way to implement vertical merge cells of tablix ?


回答1:


You have to use Matrix instead of Table. I resolved my this problem by creating a matrix same to tablix, below:

  1. Insert a Matrix. Right Click->Insert->Matrix
  2. Change groupable row to detail row. Right click row->Row Group->Group Properties... Then, in tab "General" Choose "group on" belows "add" and "delete" buttons and click delete to remove group ->OK.

  1. Right Click at the first column of Matrix and choose "Delete Column" option. Choose radio button (Delete columns only)->OK

  1. Right click on the first row of Matrix and choose "Insert row" option -> outside group - above and then another row will be added to matrix. After that, delete row that you right click previous.

  1. Now, you can add row above the detail row and can merge any more




回答2:


If this is only for display purposes, you could try putting a table inside a table. SSRS will let you do this if you delete the grouping columns on the outside table.

Otherwise you are limited to the vertical grouping with Matrices, which still has restrictions on where the vertical merging takes place.




回答3:


As far as I know, the only way to merge vertically, is to use a Matrix instead of a Table.

http://gotreportviewer.com/matrices/index.html




回答4:


So my trick is I highlighted the top row of the column I wanted to merge the cells, and changed the border properties to remove the bottom line. When you preview the report, the cells look merged.



来源:https://stackoverflow.com/questions/5447732/ssrs-tablix-merging-cells-vertically-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!