sql server reporting services:
I am trying to use the render method to render to a byte array in an ASP.Net
application and I am having a problem in that there is a lot of conflicting
information in the books and the docs on how to do this. The latest docs I
read led to the following code...
ReportingService2005 _rs = new ReportingService2005();
//have to use custom credentials because ASPNET does not have
sufficient authority...
NetworkCredential myCred = new NetworkCredential("myuserid",
"mypassword", "mydomain");
CredentialCache myCash = new CredentialCache();
myCash.Add(new Uri("http://localhost/myWebSiteName"), "NTLM",
myCred);
_rs.Credentials = myCash;
_rs.Url =
"http://localhost/ReportServer/ReportService2005.asmx";
//we just have one parameter...
ParameterValue[] Parameters = new ParameterValue[1];
Parameters[0].Name = "myReportID";
Parameters[0].Value = argmyReportID;
//Render the report to a byte array...
byte[] data;
data = _rs. oops there is no Render method!!
The first docs I read (WROX BOOK on SSRS2005) said to use the
ReportingService class but there is no such class. I then found docs saying
to use ReportingService2005 class as I did above. But that class has no
Render method. Today I found other docs that say to use
ReportExecutionService class.
Why are there so many conflicting docs. What class am I supposed to use to
do a render?
Thanks,
Gary