Are you using the latest service release? This is probably a known bug that is already fixed.
How to get the latest service release - Infragistics Community
I upgraded to v 9.2 after getting the error yesterday. There are currenty no service releases for the 9.2 WinClient release
In that case, there are two possibilities.
One is that this is fixed in a service release that is not yet available for v9.2. There may be some fixes that are in the latest service release for v9.1 or earlier that are not yet available in v9.2.
Or, this bug is not fixed. In which case, w would need to be able to duplicate the exception. Can you duplicate this in a small sample project?
Here you go Mike, this sample project throws the same error.
Any help you could offer would be appreciated.
Thanks!
Hi,
Thanks for the sample. I duplicated the exception. Looks like it happens when you have FormattedText in the grid and are using GroupBy and try to export. This is clearly a bug.
I'm going to forward this thread over to Infragistics Developer Support so they can write it up and get it corrected for the next service release.
Worked like a charm, thanks Mike!
What you would have to do is use the InitializeRow event of the UltraGridDocumentExporter. The event args have properties to allow you to skip rows.
So what you would do is export the grid to a section and skip everything but the first row. Then export the grid to a second second and skip everything but the second row. The export the grid to a third section and skip everything but the third row, etc.
Hi Mike,
Changing the ColumnStyle during the export event did the trick, thanks.
Are you aware of any straightforward way of exporting only certain rows of a grid to a particular section? Ideally, I would like to create a new section/page for each one of my group by rows (and it's children). So if there are 8 group by rows I should get 8 pages, the only catch being that if one group by row has more children than will fit on one page, then that group by row should span two pages each with the same group by header.
Any thoughts?
Thanks in advance
Yes, if you don't mind not exporting the formated text, then that's probably a good workaround. How you do that depends on how you set up the formatted text columns in the first place, though. If you are using an Editor or EditorControl, then you need to set that property on the column to null. If you are using the Style property, then you can just set Style to default.
Either way, you should do this in the BeginExport event of the UltraGridDocumentExporter component and do it on the e.Layout that is passed into the event. That way it will affect the export, but not the on-screen grid and you don't have to worry about setting it back.
Thanks mike, in the meantime should I just change any columns that are FormattedText to something else before exporting? I belive the columns which are formatted text used to be drop down lists, the exporter didn't seem to have a problem with drop downs.