((EFDataSource)report.DataSource).ConnectionParameters.ConnectionString = conn; (EFDataSource)report.DataSource = query;
The left-hand side of an assignment must be a variable, property or indexer
Quote:Use the DataSource property to specify a data source for your report. Multiple data source types are supported, including .NET data providers, lists (implementing the System.Collections.IList, System.ComponentModel.ITypedList, or System.ComponentModel.IBindingList interfaces), and XML data sources. To learn more, refer to Quick Guide to Report Data Binding.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)