[code]
private void btnprint_Click(object sender, EventArgs e)
{
int busobjLevel = 1;
tcustomers = svcclient.Getcustomers();
StiReport report = new StiReport();
report.Load(Application.StartupPath + "\\customerlist.mrt");
report.ReportAuthor = staff.staff_other_names;
report.ReportDescription = "Customer List";
report.RegBusinessObject("Stocksales", new Report.Customerlist(tcustomers));
report.Compile();
report.Show(true);
}
[/code]
class report
[code]
public class Customerlist
{
private List<Customertype> tcustomer = new List<Customertype>();
CompanyType tCompany = new CompanyType();
public List<Customertype> custrans
{
get { return tcustomer; }
set { tcustomer = value; }
}
public CompanyType companydetails
{
get { return tCompany; }
set { tCompany = value; }
}
public Customerlist(List<Customertype> tcustrans)
{
custrans = tcustrans;
companydetails = tCompany;
}
}
[/code]
[img]
[/img]