简体   繁体   English

如何在报表服务中为报表查看器控件创建此报表?

[英]How would I create this report in reporting services for the report viewer control?

I have this dataset created in Visual Studio 2008 in my project. 我在项目中的Visual Studio 2008中创建了此数据集。 I have already filled each table with the data that I need. 我已经用所需的数据填充了每个表。 There will be multiple tickets and each child table will have either 0 or more items relating to the ticket table. 将有多个票证,并且每个子表将具有0或多个与票证表相关的项目。 There are no relationships established as part of the dataset (yet). 尚未建立任何关系作为数据集的一部分。 I also have this report created that handles a single ticket just fine. 我还创建了此报告,该报告可以处理一张罚单。 If possible I would like to expand this to handle multiple tickets. 如果可能的话,我想扩展它来处理多张票。

The dataset is passed in to the report and the from the report viewer control is on has a binding source set up for each table in the dataset. 数据集将传递到报表中,并且来自报表查看器控件的上具有为数据集中的每个表设置的绑定源。

I need the report to print out each ticket with child data on a single page (or two as needed). 我需要该报告在一页上(或根据需要两张)打印出每个带有子数据的票证。 Then for the next ticket start a new page. 然后为下一张票启动一个新页面。

I have not yet been able to come up with a grouping scheme for the information that will work. 我还无法针对将要使用的信息提出分组方案。 I have gotten all of the tables to show up but I haven't been able to access the child information without the FIRST aggregate, which doesn't help because each ticket gets the same 1 record for each section printed. 我已经显示了所有表格,但是如果没有FIRST聚合,就无法访​​问子信息,这无济于事,因为每张票证在打印的每个部分都获得相同的1条记录。

Any suggestions? 有什么建议么? I know that there is more info potentially needed so please ask questions as needed and I will update this post with more info and/or comments. 我知道可能需要更多信息,因此请根据需要提出问题,我将用更多信息和/或评论更新此帖子。

Edit: We ended up turning the child data tables into sub-reports. 编辑:我们最终将子数据表转换为子报告。 We then passed the ticket number into the sub-report as a parameter and filtered the child data tables appropriately. 然后,我们将票证编号作为参数传递到子报表中,并适当地过滤了子数据表。 Other than some minor formatting issues we had to work though this solved what we needed to do. 除了一些较小的格式化问题外,我们还必须工作,尽管这解决了我们需要做的事情。 Each ticket was put in a list and the sub-reports run for each ticket. 每个故障单都放在一个列表中,并为每个故障单运行子报告。

  • Start Report 开始报告
  • Ticket 1 票1
  • -- Subreport with notes, history, & responses. -带有注释,历史记录和回复的子报表。
  • Ticket 2 票2
  • -- Subreport with notes, history, & responses. -带有注释,历史记录和回复的子报表。
  • etc 等等
  • End Report 结束报告

Looks to me like you need put all of your information/controls into a single table control. 在我看来,您需要将所有信息/控件都放在一个表控件中。 Then format the table control for the look that you want. 然后,格式化表格控件以获取所需的外观。

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

相关问题 以编程方式控制SQL Server Reporting Services报表查看器 - Controlling the SQL Server Reporting Services Report Viewer programmatically 如何使用或开始工作:VS.NET中的Reporting Services报表查看器组件 - How to use or get working: Reporting services report viewer component in VS.NET 报表查看器不显示使用Sql Server Reporting Services创建的报表 - Report Viewer Doesn't Show report created with Sql Server Reporting Services 如何在没有SSRS服务器的情况下使用Report Viewer控件执行.rdl报告? - How can I execute an .rdl report with a Report Viewer control without an SSRS server? 如何使用报表查看器创建多页报表(C#) - How to create multiple pages report with report viewer (c#) 如何使用Report Viewer在asp.net中创建报表 - How to create report in asp.net using Report Viewer 在报表查看器中显示Crystal Report Control - displaying Crystal Report Control in report viewer 报表查看器控件未显示SSRS的报表 - Report Viewer control not showing report from SSRS Metro mahapps中的报表查看器控件 - Report viewer control in Metro mahapps 如何使用Visual Studio报表查看器将参数或值传递给报表服务报表 - How to pass a parameter or a value to reporting service report using visual studio report viewer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM