For a SSRS 2008 report which displays the data on the screen (either
using the report control or BIDS) but when the export to PDF option or
TIFF is selected the following error occurs, it does works for all the
other export options.
There is no parameter listed as index, other reports on the server can
export to PDF. The problem seems to be using any Built-in Fields
(parameters) in a textbox in the footer.
Does anybody know what is causing this issue between rendering on
screen and to a PDF?
Index was out of range. Must be non-negative and less than the size of
the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Exception: Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[Exception: Index was out of range. Must be non-negative and less than
the size of the collection.
Parameter name: index]
[Exception: An error occurred during rendering of the report.]
[Exception: An error occurred during rendering of the report.]
Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean
isAbortable, String url, Stream outputStream, String& mimeType,
String& fileNameExtension) +900
Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean
isAbortable, String format, String deviceInfo, NameValueCollection
urlAccessParameters, Stream reportStream, String& mimeType, String&
fileNameExtension) +1313
Microsoft.Reporting.WebForms.ServerReport.Render(String format,
String deviceInfo, NameValueCollection urlAccessParameters, String&
mimeType, String& fileNameExtension) +131
Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String
format, Boolean allowInternalRenderers, String deviceInfo,
NameValueCollection additionalParams, Boolean
cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
+99
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection
urlQuery, HttpResponse response) +219
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
context) +171
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+599
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +171
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4016;
ASP.NET Version:2.0.50727.4016
|