Hi Don,
I'm currently using the FormatSection event, which is on the ReportDocument itself, not the viewer. So unfortunately the example you have given is not relevant as the ObjectInfos collection is not available from this event.
That said, the FormatSection event is called during the rendering process, so I would assume the FormatEngine must have the values from the database by this time, for the section being rendered.. This is certainly how it used to work in versions of Crystal prior to .Net. So I think the missing link is the ability to obtain the field values from the ReportObject (fieldObject) either during rendering (FormatSection event) or even after rendering (AfterFormatPage event). Prior to .Net the IFieldObjectPtr had a Value property which you could access during the Format event, but this property has now been removed. So if you do talk to the developers it would be worth asking why this was removed and whether it can be put back.
I think you're right though, that grouping/sorting etc will mean that even if I query for the data and put it in a dataset, I'll still have no way to correlate any given section to a row in the dataset.
Okay I'll await your response on how to access the field data during / after the format events, and also why this was removed from the FieldObject in the move to .Net.
Thanks
Paul