SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 SSRS Index out of range
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

davidagnew37
Starting Member

33 Posts

Posted - 09/05/2007 :  13:51:44  Show Profile  Reply with Quote
I get this error when exporting to Excel from the designer or from the Report Manager:
"Exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

One solution is:
(1) One Detail Cell in my table contained a number like #.#########. Aparently this freaks out Excel. I converted it to a string like this:
=Convert.ToString(Format((ReportItems!ValueOne.Value / ReportItems!ValueTwo.Value), "#.#########")) This sometimes works but makes the export have text fields and numbers under 0 show just .01 instead of 0.01 for example.

(2) Apparently disabling the Document Map Labels has the same effect and cures the problem - HOW DO YOU DO THIS?????? There is a label property for text boxes - but these are not populated.

Reading the internet..says that the SP2 for SQL server should slolve it. It hasnt.

please help..

Thanks
David

jimbob051
Starting Member

1 Posts

Posted - 09/10/2007 :  05:23:17  Show Profile  Reply with Quote
Hi David,

Do you have any images in your report? I've just discovered that the size of an image can cause the renderer to throw this error. In my case I had a company logo that measured 5.07937cm x 2.1164cm. Changing this to 5cm x 2cm fixed the problem.

The following article lists image size as a possible cause (3rd item down):
http://technet.microsoft.com/en-us/library/aa337266.aspx

Hope this helps,

James
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000