reporting services - What should be data source to access ssrs local report using entity framework? -


i have made application entity framework.now want include local ssrs report in this..so please tell me should write in datasource.add()???

        employeeentities ent = new employeeentities();         rptviewer.processingmode = processingmode.local;         localreport localreport = rptviewer.localreport;         localreport.reportpath = @"c:\users\shoaib\documents\visual studio 2012\projects\testing\report project5\report project5\report2.rdl";         localreport.datasources.clear();         rptviewer.localreport.datasources.add("employeedataset", ent.employeeinfoes);error occurs         rptviewer.refreshreport(); 

the code should be

rptviewer.localreport.datasources.add(new reportdatasource("employeedataset", ent.employeeinfoes)); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -