asp.net - How to Add Text Box to RDLC 2010 Report -
i casual user of rdlc report control in vs 2005 web application, seemed straightforward. set report data source, drag field report body text box.
in vs 2010, dragging field onto report not seem work. can drag field cell in table i've added report, when drag field onto report body, rather show field name in text box, see <> there.
in expression box, field looks =first(fields!state.value, "testdataset"), there squiggly red line under field!stata, , no problem is. fields in table right next seem ok. in text box can pick field drop down, still error.
there 1 data set, containing 1 table connected report, don't see how there can ambiguity or how field out of scope..
it must simple.
thanks mike thomas
assuming passing correct dataset name (found in report's report data tab if aren't sure), sure passing ienumerable (such list) data component of reportdatasource. if passing single object instead of list, sure wrap in anonymous array, this:
reportdatasource reportdatasource = new reportdatasource("testdataset", new[] { mysingleobject });
Comments
Post a Comment