Hello!
I have a report that I need to bind a dataset to. I have created a new dataset in Visual Studio 2012 and added my table adapter to the dataset. I go into my report and add a new data source. I select "Object Data Source" and I see my table adapter in the list. I select it and click next where I am prompted to choose a data member. These options are displayed:
- InvoiceDetailsForPrintingGetTableAdapter
- Fill(InvoiceDetailsForPrintingGetDataTable)
- GetDate():InvoiceDetailsForPrintingGetDataTable
- ToString()
- ClearBeforeFill
- Container
- Site
No matter what I choose, when I finish the configuration and go into the data source it throws an error.
Telerik.Reporting.Processing.Data.ObjectDataSourceException: Member GetData() on type InvoiceDetailsForPrintingGetTableAdapter not found.
at Telerik.Reporting.Processing.Data.MemberMatch.ThrowMemberNotFound(Type type, String name, ObjectDataSourceParameterCollection parameters)
at Telerik.Reporting.Processing.Data.MemberMatch.FindMemberMatch(Type type, String name, ObjectDataSourceParameterCollection parameters, Type& returnType)
at Telerik.Reporting.Processing.Data.ObjectDataSourceInstanceResolver.TryResolveReturnObjectFromType(Type type, String dataMember, ObjectDataSourceParameterCollection parameters, Object& result)
at Telerik.Reporting.Processing.Data.ObjectDataSourceInstanceResolver.TryResolveAsMethodInvocation(Object dataSource, String dataMember, ObjectDataSourceParameterCollection parameters, Object& instance)
at Telerik.Reporting.Processing.Data.ObjectDataSourceInstanceResolver.ResolveDataSource(Object dataSource, String dataMember, Boolean evaluateParametersValues)
at Telerik.Reporting.Processing.Data.ObjectDataSourcePropertiesResolver.ResolveDataSourceProperties(ISimpleDataProvider provider, Object dataSource, String dataMember, IEnumerable`1 parameters)
at Telerik.Reporting.Processing.Data.ObjectDataProviderBase`1.ResolveDataSourceProperties()
at Telerik.Reporting.Processing.Data.ObjectSchemaAdapter.<GetFields>d__1.MoveNext()
at Telerik.Reporting.Processing.Data.SimpleSchemaAdapter.AddDataMeasures(SimpleDataModel model)
at Telerik.Reporting.Processing.Data.SimpleDataProvider`1.GetSchemaCore()
at Telerik.Reporting.Processing.Data.DataProvider`1.Telerik.Reporting.Processing.Data.IDataProvider.GetSchema()
at Telerik.Reporting.Data.Design.DataSourceDesignerBase.Telerik.Reporting.Design.Interfaces.IDataSchemaProvider.GetSchema()
at Telerik.Reporting.Data.Design.DataSourceService.GetSchemaFromContext(Object context)
at Telerik.Reporting.Data.Design.DataSourceService.Telerik.Reporting.Design.Interfaces.IDataSourceService.GetCurrentDataItemSchema()
at Telerik.Reporting.Design.DataExplorerControl.<>c__DisplayClass2.<RefreshDataSource>b__0()
But there is a GetData on my data set - I verified it by going into the data set designer and it says "GetData(@cutOff, @invoiceId)" under the GetTableAdapter. I need to be able to see the fields in the dataset in the report designer so that I can use them in the report. Any help would be appreciated!
Thanks!