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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 19:55:16  来源:igfitidea点击:

How to make List report item repeat horizontally for RDLC Report?

c#vb.netwinformsvisual-studiordlc

提问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这种方式创建水平:

  1. Insert a List
  2. Right click on row header and from Row Groupitem, click Delete Group
  3. Drag one or more fields from Report Datawindow, to data cell of report.
  4. Right click on column header and from Add Groupitem in Column Groupsection click Parent Group....
  5. Enter =RowNumber(Nothing)as expression of group and click OK. (If you have a unique field like Id, you can choose it from dropdown and in such case you don't need to do step 6)
  6. Again, right click on column header and from Column Groupitem, click Group Properties...and from Sortingtab, select first row in table and click Delete.
  1. 插入一个 List
  2. 右键单击行标题Row Group,然后从项目中单击Delete Group
  3. Report Data窗口中的一个或多个字段拖到报表的数据单元格中。
  4. 右键单击列标题,然后从部分中的Add Group项目Column Group单击Parent Group...
  5. 输入=RowNumber(Nothing)组表达式并单击OK。(如果您有一个独特的字段,例如Id,您可以从下拉列表中选择它,在这种情况下,您不需要执行第 6 步)
  6. 再次,右键单击列标题和Column Group项目,单击Group Properties...和从Sorting选项卡,选择表中的第一行并单击Delete

enter image description here

在此处输入图片说明

More settings on report:

有关报告的更多设置:

  • You can also perform this using a Tableor 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 thisblog post about Horizontal Tables in SSRS.
  • 您也可以使用Table或执行此操作Matrix
  • 您可以隐藏显示记录编号的第一行。
  • 您可以插入一列以显示某些行标题。
  • 欲了解更多信息,看看这个博客帖子大约在SSRS水平表。