Since I can't get the help to work and seaching this forum did not give me a valid answer (well one that made sense) I am posting it as a question.
I am using VS2010 and .NET 4.0 with WPF.
I have the below code which gets data and loads it into a query definded as CollectionSummaryRecord. The CollectionSummary report is defined in the assembly and works if I don't change the data source. CR_ReportViewer is a WPF report viewer.
In my searching I got the impression I should not be using "SetDataSource" but am not sure what to use. I am trying to use an in memory value and not the SQL directly. Intellisense shows SetDataSource taking an IEnumerable<T> so it seems logical to use it.
Code:
var rd = new reports.CollectionSummary();
var data = from p in dl.OpenCBs
group p by new { p.AreaCode, p.Number } into g
select new CollectionSummaryRecord()
{
PhoneNumber = string.Format("({0}) ", g.Key.AreaCode, g.Key.Number),
Collected = g.Sum(p => p.Amount_Collected)
};
rd.SetDataSource(data);
this.CR_ReportViewer.ViewerCore.ReportSource = rd;
Error message:
Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
The missing file exists on my system just not in that directory, it is the win32_x86 directory above the dotnet directory. Note there is no such directory as "dotnet1" (with '1'), there is one without the '1'.
Thanks for any help...
Regards,
John