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
595
Exception thrown when trying to print an UltraGrid
posted

Hi guys,

Sometimes when printing an ultragrid we're getting the following exception:

Index was outside the bounds of the array.
at Infragistics.Win.UltraWinGrid.PrintManager.AddLogicalPrintPage(UltraGridRow row, Int32 scrollOffset)
at Infragistics.Win.UltraWinGrid.PrintManager.CalculateFirstRows()
at Infragistics.Win.UltraWinGrid.PrintManager.CalculatePageDimensions()
at Infragistics.Win.UltraWinGrid.PrintManager.BeginPrint(Object sender, PrintEventArgs e)
at System.Drawing.Printing.PrintDocument.OnBeginPrint(PrintEventArgs e)
at System.Drawing.Printing.PrintDocument._OnBeginPrint(PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Infragistics.Win.UltraWinGrid.UltraGrid.Print(UltraGridLayout layout, PrintDocument printDocument, RowPropertyCategories retainRowPropertyCategories)
at Infragistics.Win.UltraWinGrid.UltraGrid.Print(UltraGridLayout layout)

This exception happens only for landscape printing with a filter for some column in the grid. The exception is sporadic and doesn't happen everytime

Any suggestions?