c# - Using subreport inside an SSRS table/tablix cell -
in application have report 1 subreport contained inside table cell. within subreportprocessing event handler supply different set of data foreach instance of subreport. in vs 2008 worked okay. however, when switched on vs2010 , upgraded report file format, behavior changed. subreport instances in master table contain data supplied first table row. code looks this
void localreport_subreportprocessing(object sender, subreportprocessingeventargs e) { // _index global variable reset 0 in databind procedure. trip currenttrip = _trips[_index]; e.datasources.add(new reportdatasource("datasourcename", currenttrip.items)); _index++; }
is intended behavior? how can supply different datasets multiple instances of same subreport inside table?
thanks in advance.
vladislav
after poking around , tinkering code, found workaround. solution create dummy parameter in subreport, need bind field in tablix dataset. field long both subreport parameter , tablix dataset field type-compatible. don't have parameter in subreport, ssrs displays multiple instances of same subreport, separate 1 each row in tablix.
hope helpful else, too.
vladislav
Comments
Post a Comment