Forum Discussion

Markzolotoy's avatar
Markzolotoy
Icon for Impactful Individual rankImpactful Individual
4 years ago

Running paginated report from c#

I know how to run SSRS reports from c# using HttpClient. It is basically like this:

var uri = new Uri("report url");
var credentialsCache = new CredentialCache();
credentialsCache.Add(uri, "NTLM", new NetworkCredential("username", "password"));
var handler = new HttpClientHandler() { Credentials = credentialsCache, PreAuthenticate = true };
using (var client = new HttpClient(handler))
{
   var response = client.PostAsync(uri, httpContent).Result;
   ...
}

Can a paginated report be run in a similar fashion? Please note, I am using PostAsync to send a large number of parameters to the report. Also, what about credentials? 

 

Thanks

4 Replies