I want to create a basic "this works and I can modify it once I get it working"
report. As it followed the chapter I ran into some problems.
Basically 2 things
1. In Generating the Report the is no mention of the fact that if creating a report by hand or adding it to an existing project this using needs to be added.
Code:
using Microsoft.Reporting.WinForms;
Also from searching the net it looks like the Report1.rdlc should have a BuildAction property set to "Embedded Resource"
2. I am using C# chose to embed the report. I added the 4 example lines from this section
Code:
LocalReport reportEngine = reportViewer1.LocalReport;
reportEngine.ReportEmbeddedResource = "Test4.Report1.rdlc";
reportEngine.DataSources.Add(new ReportDataSource("CustomerData",data));
reportViewer1.RefreshReport();
When creating the report the namespace was "Test4"
and I accepted all the default names as I followed the chapter.
I did create my own xsd file "APM.xsd" that has a datatable object named "apmast01" and a TableAdapter object named "apmast01TableAdapter". The TableAdapter is based on a SelectCommand. I do not want to use the Entity Framework at this point
It no problem with lines 1, 2 and 4
But I do NOT understand what is supposed to be used in line 3.
Obviously it is not "CustomerData" and data but what should it be?