My apologies, when I set up a test project using the parameters I described above, it worked as expected.
I am attaching a sample project illustrating the problem.
The only difference I can see is that in my project, there is an additional level of nesting for the data.
Hopefully the test project helps you guys see what I mean. Please let me know what you think.
Thanks,
Ben
Hello Ben.
Thank you for your message. This behavior is caused by the fact that the GetCurrentRow method returns the main report data. To solve this issue, call this method for the corresponding DetailReportBand. Please modify your code as follows:
I hope this will help you achieve the required functionality.[C#]private void ItemDetailCategoryGroupFooter_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { GroupFooterBand band = sender as GroupFooterBand; //Here, I expect an instance of ReportLineItemsBandData, but instead get an instance of SalesByItemDetailReportData var rowData = band.Report.GetCurrentRow(); }
Best regards,
Ingvar.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+