问题
I am using the List report item to make a report in visual studio with four report items per page. I am able to get the report to repeat vertically, but not horizontally. Is there a setting I am missing or do I need to do something additional?
回答1:
You can create a horizontal List this way:
- Insert a
List - Right click on row header and from
Row Groupitem, clickDelete Group - Drag one or more fields from
Report Datawindow, to data cell of report. - Right click on column header and from
Add Groupitem inColumn Groupsection clickParent Group.... - Enter
=RowNumber(Nothing)as expression of group and clickOK. (If you have a unique field likeId, you can choose it from dropdown and in such case you don't need to do step 6) - Again, right click on column header and from
Column Groupitem, clickGroup Properties...and fromSortingtab, select first row in table and clickDelete.
More settings on report:
- You can also perform this using a Table or Matrix
- You can hide first row which shows record number.
- You can insert a column to show some row header.
- For more information take a look at this blog post about Horizontal Tables in SSRS.
来源:https://stackoverflow.com/questions/37623052/how-to-make-list-report-item-repeat-horizontally-for-rdlc-report