all groups > sql server reporting services > december 2005 >
You're in the

sql server reporting services

group:

RS2005 Web ReportViewer: Unable to set parameters and ReportServerCredentials



RS2005 Web ReportViewer: Unable to set parameters and ReportServerCredentials Christoph Wienands
12/22/2005 5:19:00 PM
sql server reporting services: Hey guys,

I'm using the report viewer web control in my web application. I got it
somewhat working but now I'm stuck:

1) I can't set the parameters for the report. When I call SetParameters and
pass a ReportParameter array, it complains that this report doesn't have
parameter 'XYZ'. But in reality it does. My suspicion was that the
ServerReport object is not filled with report data yet.
So I called GetParameters beforehand to see if it would initialize the
parameters collection. Then I found out that the parameters collection is
set to read-only, which means I can't set parameter values in an initialized
parameter collection.
Last try was to call SetParameters after calling GetParameters but I got the
same exception as when calling w/o GetParameters.

2) I need to pass ReportServerCredentials to RS because of course ASPNET
does not have access rights to RS. The only property that is not read-only
underneath the ReportServerCredentials property is the
ReportServerCredentials itself, which is of type IReportServerCredentials.
So far I couldn't find any credentials object that implements this
interface.

Anybody any idea?

Thanks, Christoph

RE: RS2005 Web ReportViewer: Unable to set parameters and ReportServer wallacetmac
1/17/2006 7:21:02 AM
I have the same problem, did anyone ever respond to you?

[quoted text, click to view]
AddThis Social Bookmark Button