I have a model that looks like this
public class APV{ public string VendorName { get; set; } public DateTimeOffset ReportDate { get; set; } public string APV_NO { get; set; } public string INV_NO { get; set; } public decimal? INV_AMT { get; set; } public decimal? TOTAL_DEBIT { get; set; } public decimal? TOTAL_CREDIT { get; set; } public IEnumerable<AccountStatement> AccountStatements { get; set; }}public class AccountStatement{ public string AccountCode { get; set; } public string AccountName { get; set; } public decimal? Debit { get; set; } public decimal? Credit { get; set; }}
but I am passing a list of that object such as
var apvDatas = new List<APV>(); apvDatas.Add(item1);apvDatas.Add(item2);apvDatas.Add(item3);I want to create a one page report per item, so I am expecting a 3 page report with different APV_NO or INV_NO as its own page identifier, I just want to create one page report per item with the same header and footer.
here how my report looks like when I pass a single object but whenever I pass list of object it looks like this
expectedperItem.png is what it should like per item
somethingiswrong.png is what is happening whenever I try to pass a list of APV