I am trying to load up a report that just shows employee last names and first names from a SQL database table. In my WPF test application I am calling the following:
Code: Select all
private StiReport report = new StiReport();
public EmployeeWindow()
{
InitializeComponent();
report.Load("..\\..\\employee\\emplist.mrt");
report.RegData("employee", empHelp.GetEmployeesIEnum(ACTIVE));
report.ShowWithWpf();
}
The emplist.mrt report may be malformed, I suppose. All this report has is one data band that contains two columns: employee.lname and employee.fname. These are defined in a Dictionary data set for the report of type "User Sources." (that is, I didn't link the data source to our SQL DB, I just specified column names. I want to load these at run time).
Am I going about this the wrong way? If so, can someone point me to some help? Much appreciated.