Hello,
I have a grid bound to a hierarchical BindingList<T> this object generally is 4 levels deep, but can vary. When I perform a print using the ultragrid printpreview and print methods, I get all rows in an expanded state, but no row summaries below the second band level.
I am using 2 custom sort object using this ICustomSummaryCalculator interface, and all summaries are generated correctly in the screen layout. The first ICustomSummaryCalculator is only added to the first parent band, and the second ICustomSummaryCalculator is added to every other band in the grid.
I also notice that when a row is expanded the the summary is generated. Does this maybe have something to do with the printlayout having all rows expanded, while the screen layout does not..thus all of the child band summaries are not generated. Here is a conflicting statement....when I have all rows in the grid expanded (screen layout), and I print, the summaries still do not appear.
I do have some code in the initialize row event subscription to collapse or expand rows in the printlayout, based on the expansion state of the screen layout. but even with this code removed, the summaries are still not printing.
Thanks for any light you can shed.
Best Regards,
Gerald
Hi Mike,
See the screenshot of my print preview, as you can see, the summaries are not appearing. No you do not need to actually print, the effect can be seen in the print preview.
The same problem exists with the excel export.
Thanks,
Hi Gerald,
Can you please tell me what I need to do with this sample in order to see the problem? I ran the sample and displayed the Print Preview, but I don't see any summaries missing. The on-screen grid appears to have only one summary that is non-zero and it appears to work just fine in the print preview as well. Does the problem only occur when actually printing and not in the print preview?
Hi Mike, I am using version 2010.2
Here is a sample project, there is alot of commented code as this is a copy from a project I am currently working on.
Many Thanks,
This sounds like a bug to me.
What version of the grid are you using? You may need to get the latest service release or update to the latest version.
How to get the latest service release - Infragistics Community
If that doesn't help, then perhaps you could post a small sample project here demonstrating the issue so we could check it out.