Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Excel export error when using groups, superposed columns and summaries in one grid
posted

Hi,

we have a table with some groups (and subgroups) and superposed columns. When we try to export the grid to an excel file, everything works perfectly.
After we embed a summary row at the bottom (bottom fixed) and try to export the grid again, the export fails (object reference is nothing/null).

We tried to reproduce this error in a sample application, but everything works fine (same grid configuration as in our application). We also tried to debug the ExcelExporter class, but with no success (visual studio don’t find the ExcelExporter namespace, even if we include and reference the source?).

Can you please explain us in which cases this object reference can be null or which grid settings can cause this?

Cheers,
NDE

PS: We use version 11.2 and VB.NET!


StackTrace:

   bei Infragistics.Win.UltraWinGrid.UltraGridBand.GetSummaryLayoutPreferredSize(SummaryDisplayAreaContext context)
   bei Infragistics.Win.UltraWinGrid.SummaryValuesCollection.GetFixedSummaryLineHeight(SummaryDisplayAreaContext context, Int32 level)
   bei Infragistics.Win.UltraWinGrid.SummaryValuesCollection.GetFixedFooterAreaHeight(SummaryDisplayAreaContext context)
   bei Infragistics.Win.UltraWinGrid.SummaryValuesCollection.GetSummaryFooterHeight(SummaryDisplayAreaContext context)
   bei Infragistics.Win.UltraWinGrid.UltraGridSummaryRow.get_BaseHeight()
   bei Infragistics.Win.UltraWinGrid.UltraGridRow.get_TotalHeight()
   bei Infragistics.Win.UltraWinGrid.VisibleRow.GetTotalHeight(Boolean adjustForOverlappedBorders)
   bei Infragistics.Win.UltraWinGrid.VisibleRow.GetTotalHeight()
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.IsRowFullyVisible(ScrollbarVisibility colScrollbarVisibility, VisibleRow visibleRow)
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.IsFirstScrollableRowVisible(ScrollbarVisibility colScrollbarVisibility)
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.IsFirstScrollableRowVisible()
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.ResetScrollInfo()
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows(Boolean resetScrollInfo)
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows()
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.WillScrollbarBeShown(ScrollbarVisibility assumeColScrollbarsVisible)
   bei Infragistics.Win.UltraWinGrid.ScrollRegionBase.WillScrollbarBeShown()
   bei Infragistics.Win.UltraWinGrid.DataAreaUIElement.AddIntersectionHelper(UIElementsCollection oldElements, RowScrollRegion rsr, ColScrollRegion csr, RowScrollRegion rsrPrevious, ColScrollRegion csrPrevious, Boolean lastVisibleRsr, Boolean lastVisibleCsr)
   bei Infragistics.Win.UltraWinGrid.DataAreaUIElement.PositionChildElements()
   bei Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   bei Infragistics.Win.UltraWinGrid.DataAreaUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   bei Infragistics.Win.UltraWinGrid.DataAreaUIElement.set_Rect(Rectangle value)
   bei Infragistics.Win.UltraWinGrid.UltraGridUIElement.PositionChildElements()
   bei Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   bei Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   bei Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive)
   bei Infragistics.Win.UltraWinGrid.UltraGridUIElement.InternalInitializeRect(Boolean verify)
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.InternalInitializeUltraGridUIElementRect(Boolean verify, Boolean onlyWhenEmpty)
   bei Infragistics.Win.UltraWinGrid.RowsCollection.SyncRows()
   bei Infragistics.Win.UltraWinGrid.RowsCollection.EnsureNotDirty()
   bei Infragistics.Win.UltraWinGrid.RowsCollection.get_Count()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.GetRowSelectorNumberWidth()
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.GetRowSelectorWidthDefault(UltraGridBand band)
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.get_RowSelectorWidthResolved()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.get_RowSelectorExtent()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.GetExtentLayout(Boolean minimum, BandOrigin bandOrigin)
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.GetExtentLayout()
   bei Infragistics.Win.UltraWinGrid.UltraGridGroup.CalcLayoutHelper(Int32 bandExtent)
   bei Infragistics.Win.UltraWinGrid.UltraGridGroup.CalcLayoutHelper()
   bei Infragistics.Win.UltraWinGrid.UltraGridGroup.VerifyRowLayoutCache()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.VerifyRowLayoutCache()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.get_LayoutOrderedVisibleColumnHeaders()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.GetAllOrderedHeaders()
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.CalculateBandMetrics(UltraGridBand priorBand)
   bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics(Int32 pass)
   bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics()
   bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()
   bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands()
   bei Infragistics.Win.UltraWinGrid.UltraGrid.PrepareForExport(UltraGridLayout exportLayout, Boolean async)
   bei Infragistics.Win.UltraWinGrid.AsyncExportOperation.ProcessPhasePrepareForExport()
   bei Infragistics.Win.UltraWinGrid.AsyncExportOperation.ProcessCurrentPhase()
   bei Infragistics.Win.UltraWinGrid.AsynchronousExportManager.ProcessExport()
   bei Infragistics.Win.UltraWinGrid.AsynchronousExportManager.AddExportOperation(UltraGrid grid, IUltraGridExporterAsynch exporter)
   bei Infragistics.Win.UltraWinGrid.UltraGrid.ExportAsync(IUltraGridExporterAsynch exporter)
   bei Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.ExportHelper(UltraGrid grid, Worksheet worksheet, Int32 startRow, Int32 startColumn, Boolean asynch)
   bei Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.ExportAsync(UltraGrid grid, Worksheet worksheet, Int32 startRow, Int32 startColumn)
   bei Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.ExportAsync(UltraGrid grid, String fileName, WorkbookFormat workbookFormat)
   bei NDE.clsITC_UGRD.clsExport.ExcelExport(UltraGrid& Grid, String ExportFileNameSuffix, ExportTemplates& ExportTemplates) in C:\Sorsokanovic\FortyTwo\Source\SIK_20130701\FortyTwo\SDSTableEditor\Classes\Basic-Objects\clsITC_UGRD.vb:Zeile 4579.