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
Post a Comment