Necuno
Court Jester
- Joined
- Sep 27, 2005
- Messages
- 58,567
Adding subreport to main report at runtime (RDLC)
That is what i want to achieve at runtime; the original problem was to use ms reportviewer with an unkown total pages which are dynamic in the sense of layout hence being a first, middle and last. they do however all use the same data object collection differing only on first (client detail) and last (2 added tables where signatures and realted goes).
now as this post i want to be able to add to a main report subreports at runtime being RDLC's (if there is 3 for example) first middle and last, otherwise for more it would be first, middle, middle, ... and then finally last.
The RDLC files are allready setup however, my main is thing is which i can't seem to find is how from the main report file (dubbed "First") add a middle(s) or last as sub report at runtime.
i do see that however on each subreport render there is an event which you could do something, it is just how to add them to main.
That is what i want to achieve at runtime; the original problem was to use ms reportviewer with an unkown total pages which are dynamic in the sense of layout hence being a first, middle and last. they do however all use the same data object collection differing only on first (client detail) and last (2 added tables where signatures and realted goes).
now as this post i want to be able to add to a main report subreports at runtime being RDLC's (if there is 3 for example) first middle and last, otherwise for more it would be first, middle, middle, ... and then finally last.
The RDLC files are allready setup however, my main is thing is which i can't seem to find is how from the main report file (dubbed "First") add a middle(s) or last as sub report at runtime.
i do see that however on each subreport render there is an event which you could do something, it is just how to add them to main.