简体   繁体   中英

Combine all SSRS reports in the Grid into one report

It should be very simple and should employ multi-value parameters , but not able to figure out how ?

This report takes parameters from the GridView

I have a gridview in an asp.net web page which has print button for every row to print this report for that row.

Now, there are as many reports as there are rows in the grid.---[This part is done]

So,how about combining all these reports into one single report

You can add a subreport for each one of you reports. You just create a new report and start inserting subreports in each row.

Check this documentation:

http://msdn.microsoft.com/en-us/library/dd220581.aspx

Here's an example for you:

1 - Create a new report. You can then add a tablix to it, in case you have more info, which is the case in my example. Just don't forget to add a dataset to that tablix if that's your case.

This is how it would look 在此处输入图片说明

Each gray line is a subreport.

2 - To insert a subreport just right-click a cell and go to Insert > Subreport

3 - Right-click your subreport, select Subreport Properties and choose your report from the drop-down menu:

在此处输入图片说明

在此处输入图片说明

4 - You can then set the parameters your subreport will receive:

在此处输入图片说明

Case 2: if you don't need a tablix for aditional info, just repeat the same process in a Rectangle .


UPDATE

As I said in my comment, here's one report in which I do exactly what you want:

在此处输入图片说明

As you can see the subreports are part of the main report's body that has other data.

I need to repeat these subreports for each record and that's how it is done.

Here you can see the Id being passed as parameter to my subreport:

在此处输入图片说明

From what I understood, that's what you want. That way for each record its current Id would be passed to the report. Generating a report with that "dynamic" parameter you mentioned.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM