Single Row

edited 11:00AM in FastReport .NET
I just updated to the newest version and now I am having this problem.

I have a report where I am passing a list to the databand and such, it was woring prior to the update.

The report is only populating with the 1st line of the list.
List<InvoiceData> invoice = ScanHistoryDB.GetNonInvoicedScans();

            Report invRpt = new Report();
            invRpt.Load(@"Reports\test.frx");

            invRpt.RegisterData(invoice, "data");

            DataBand databand = (DataBand)invRpt.FindObject("Data1");
            databand.DataSource = invRpt.GetDataSource("data");

            invRpt.Prepare();

            invRpt.ShowPrepared();

Comments

  • edited 11:00AM
    try the demo from fastreport, if they are working then there is something wrong with your datasource or layout
  • In my experience, this usually happens if your datasource is not assigned to your databand.

Leave a Comment