SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 47406: An error might occur when viewing a consolidated SAS report in SAS® Enterprise Guide®

DetailsHotfixAboutRate It

When you have SAS report results in SAS Enterprise Guide, you can create a consolidated report by selecting File ► New ► Report. When viewing the report, if you click on Page View, you might see the following error. This error is most likely to occur after you modify the report and add more results.

System.ArgumentOutOfRangeException

Index was out of range. Must be non-negative and less than the size of the
collection.
Parameter name: index

------------------------------ Technical Information Follows
------------------------------

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative
and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at SAS.Report.Viewer.TextBox.RenderDrawText(IReportLayout reportLayout,
Boolean drawText, IReportWriter reportWriter, Rectangle rect, Int32 wordFrom,
Int32 wordTo, Int32 pageNumber, Int32 pageCount)
   at SAS.Report.Viewer.TextBox.DrawText(Boolean drawText, Rectangle rect,
IReportWriter reportWriter, Int32 wordFrom, Int32 wordTo, Int32 pageNumber,
Int32 pageCount)
   at SAS.Report.Viewer.Text.Draw(IReportWriter reportWriter, RenderToken
renderToken)
   at SAS.Report.Viewer.RenderToken.Draw(IReportWriter reportWriter)
   at SAS.Report.Viewer.Page.Render(IReportWriter reportWriter)
   at SAS.Report.Viewer.SASReportView.RenderPages(Graphics graphics)
   at SAS.Report.Viewer.SASReportView.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at SAS.Report.Viewer.SASReportView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

After this error, the report contains only red Xs.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideMicrosoft® Windows® for x644.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition4.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition4.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 2003 Standard Edition4.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 2003 for x644.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 20084.226.19.2 TS2M29.2 TS2M3
Microsoft Windows Server 2008 for x644.226.19.2 TS2M29.2 TS2M3
Microsoft Windows XP Professional4.226.19.2 TS2M29.2 TS2M3
Windows 7 Enterprise 32 bit4.226.19.2 TS2M29.2 TS2M3
Windows 7 Enterprise x644.226.19.2 TS2M29.2 TS2M3
Windows 7 Home Premium 32 bit4.226.19.2 TS2M29.2 TS2M3
Windows 7 Home Premium x644.226.19.2 TS2M29.2 TS2M3
Windows 7 Professional 32 bit4.226.19.2 TS2M29.2 TS2M3
Windows 7 Professional x644.226.19.2 TS2M29.2 TS2M3
Windows 7 Ultimate 32 bit4.226.19.2 TS2M29.2 TS2M3
Windows 7 Ultimate x644.226.19.2 TS2M29.2 TS2M3
Windows Vista4.226.19.2 TS2M29.2 TS2M3
Windows Vista for x644.226.19.2 TS2M29.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.