Hi,
I'm trying to use the UltraGridExcelExporter to export a grid to excel. It works if there's data in the grid, but if it is empty, it fails with this error:
System.Collections.Generic.KeyNotFoundException was caught Message="The given key was not present in the dictionary." Source="mscorlib" StackTrace: at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Infragistics.Win.UltraWinGrid.GridExportCache.GetDocumentBandInfo(UltraGridBand band, PlaceholderType placeHolderType) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.SetCurrentGridObjectSpan(UltraGridExporterHelper exportHelper, UltraGridBand band, UltraGridRow row, PlaceholderType placeHolderType) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.BeginExportInternal(UltraGridExporterHelper exportHelper, UltraGridLayout exportLayout, RowsCollection rows) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExporterHelper.BeginExport(UltraGridLayout exportLayout, RowsCollection rows) at Infragistics.Win.UltraWinGrid.UltraGrid.Export(IUltraGridExporter exporter) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, Worksheet worksheet, Int32 startRow, Int32 startColumn) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, WorkbookFormat workbookFormat) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, String fileName, WorkbookFormat workbookFormat) at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, String fileName)InnerException:
Is it possible to at least export the column headers even though there are no rows in the grid?
What version are you using? I think this might already have been fixed.
If you don't already have it, try getting the latest service release:
How to get the latest service release - Infragistics Community
How can I get email notified when Service Releases happen?
Thanks
-Ken
Hello Ken.
Whenever you create a case and a bug is logged for the issue, you will automatically be notified when the service release is available that fixes that bug. You can always check Infragistics.com for the service release schedule here:
http://es.infragistics.com/support/policies.aspx#ServiceReleases
Please let me know if you have any questions.
SincerelyCharlieSenior Developer Support EngineerMCTS