vb.net 如何使 RDLC 报告的列表报告项水平重复?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37623052/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make List report item repeat horizontally for RDLC Report?
提问by MickB
I am using the Listreport 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?
我正在使用List报告项在 Visual Studio 中制作报告,每页有四个报告项。我能够让报告垂直重复,但不能水平重复。是否有我遗漏的设置或我需要做一些额外的事情?
采纳答案by Reza Aghaei
You can create a horizontal Listthis way:
您可以通过List这种方式创建水平:
- 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.
- 插入一个
List - 右键单击行标题
Row Group,然后从项目中单击Delete Group - 将
Report Data窗口中的一个或多个字段拖到报表的数据单元格中。 - 右键单击列标题,然后从部分中的
Add Group项目Column Group单击Parent Group...。 - 输入
=RowNumber(Nothing)组表达式并单击OK。(如果您有一个独特的字段,例如Id,您可以从下拉列表中选择它,在这种情况下,您不需要执行第 6 步) - 再次,右键单击列标题和
Column Group项目,单击Group Properties...和从Sorting选项卡,选择表中的第一行并单击Delete。
More settings on report:
有关报告的更多设置:


