Is it possible for me to include a sub report in a tablix row that is grouped by an ID?

◇◆丶佛笑我妖孽 提交于 2019-11-29 13:28:40

You have to build the subreport as a separate report .rdl and build it to accept a parameter of the ID. You will then pass the ID parameter to the subreport once it's added to the parent report. Once the sub is built, tested, and saved...add it to your main report using Insert-> Subreport on the main tab. You should be able to select the cell on the design view where you want the subreport to be and insert the subreport there.

To specify parameters to pass to a subreport

  1. In Design view, right-click the subreport and then click Subreport Properties.
    1. In the Subreport Properties dialog box, click Parameters. Click Add. A new row is added to the parameter grid.
    2. In the Name text box, type the name of a parameter in the subreport or choose it from the list box. This name must match a report parameter, not a query parameter, in the subreport.
    3. In the Value list box, type or select a value to pass to the subreport. This value can be static text or an expression that references a field or other object in the main report.

Step 1: Add new report and fill the data using dataset(Ex Report Name :: SubReport)

Step 2: Create another New Report and fill the data using dataset(Ex Report Name :: Main_Report)

Step 3: Now which row cell you want using subreport, select that cell and right click ---> go to insert --> Add the sub report in particular cell.

Step 4: Then right click on that cell and go to ---> Subreport properties and select which report(Subreport name) is using in drop-down .Don't use other properties and now see preview the main report.

Step 5: Now you can see full report data in assigned columns.

Step 6: But you are use parameter based on primary key that time you have to keeping mind an one think .Which parameter name passing to subreport the same name only using main report parameter. This parameter should have reference column into main and sub reports.

Step 7: Try this if have any doubt reply me i will clear on this.

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