4

I have made 3 ReportsViewer and need to make 7 more, and the all have the same header (title date and logo)

Is there a way to reuse parts of a report (e.g. header, footer)? I can't be the first one to need this feature :) I searched a bit on MSDN and alot on SO, but could't find anything, please help. Even a link in the right direction would be much appriciated.

I tryed messing around with subreports for a few days, but could't get anything to work, but I might just have to try harder or is there a other way?

It's not that I can't create the last 7 reports individuel, it's just that it feels so wrong not reusing anything, so I wan't to learn more about it.

Update: Yes it can be done. The hardest part is to pasing the parametres down to the subreport.

Update2: Few tips about the hard part, know that I've getting better. 1) Parent report, in the Report Data window add the parameters. After that, right click the subreport and choose properties. You also have to add the parameters here and right the name of the subreport (wihtout the .rdlc) 2) Sub report, Add the parameters in the Report Data window 3) I checked the "Alle blank value("")" and the "Allow null value". It might help you too if it's your first time.

1 Answer 1

3

You can use subreports for this task.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.