I had been using the Report Viewer Control Add-In and as far as I can tell,
it does not have a method to pass credentials to the RS server. I found a
code snippet that renders the report directly, allowing you to pass
credentials. See snippet below: (rs1 must be defined as a proxy class
pointing to your RS server)
*******************************
rs1.Credentials = New System.Net.NetworkCredential("<myLogin>", "<myPW>",
"")
Dim results As Byte(), image As Byte()
Dim streamids As String(), streamid As String
' Render the report to HTML4.0
results = rs1.Render(Session("ReportPath"), "HTML4.0", _
Nothing,
"<DeviceInfo><StreamRoot>/WebApplication1/</StreamRoot></DeviceInfo>",
Nothing, _
Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, streamids)
Response.BinaryWrite(results)
**************************************
Wayne
[quoted text, click to view] "Wayne Wengert" <wayneSKIPSPAM@wengert.org> wrote in message
news:OTRwVpl3FHA.3592@TK2MSFTNGP12.phx.gbl...
>I have an ASP.NET application that includes a Report Viewer form. The user
>clicks on a radio button list item to sekect the report to be viewed. The
>system requires the user to enter a userid and password to view the report.
>
> Is there a way to simply have the report display? I do not want users to
> have to log in.
>
> TIA
>
> Wayne
>