Skip to content

C sharp stimulsoft report

Carlos kambui

Asked Jul 17, 2016, 9:40 PM EDT1 answer
Share
LinkedInX
 my report load with blank page kindly assist
below are my codesunder btnclick  and under class
[code]
C#
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]
C#
 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]
 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    Recheck the source name matching the report template "Name in Source".
    0