Groups | Blog | Home
all groups > sql server reporting services > march 2006 >

sql server reporting services : Dynamic (datadriven) call of subreports


Roland Müller
3/15/2006 11:37:24 AM
Hi all, is there a possibility to call a subreport depending of the result of
a data-set? For example: IF Field!Rep!Value =
"Subreport_A",Subreport_A,Subreport_B.
Or can Subreports only be hardcoded?

Thanks and best regards,
MJT
3/15/2006 12:26:31 PM
you can show / hide subreports based on an expression. I am doing that with
mine. I have the visibility set to whether a particular field in the dataset
has a certain value or not. So if you put your subreports so they are in the
same physical space and show/hide based on an expression then I think that
should work. Good luck!

[quoted text, click to view]
Roland Müller
3/15/2006 12:40:26 PM
Hi,

thanks for your answer! I hope this will not slow the system because every
subreport has to be generated and then hiddend or made visible (depending on
the value of the field). Better would be only to render the subreport whose
name cames from the data set! But there is no chance to enter any expressions
in the subreport-name.field :-((

[quoted text, click to view]
AddThis Social Bookmark Button