SSRS Render Multiple Pages from Report in C# <p>I have a service that renders a report from SSRS which works perfectly fine with one page, however when I tried to change the code to render multiple pages separately I can't seem to get it to work as expected.</p> <p>I used a guide on the MSDN blogs (<a href="http://blogs.msdn.com/b/bryanke/archive/2004/02/11/71491.aspx#code" rel="nofollow">http://blogs.msdn.com/b/bryanke/archive/2004/02/11/71491.aspx#code</a>) to try and achieve this, but my StreamIDs doesn't seem to be working as I expected.</p> <p>Here's my code from the Render() method onwards (the rest seems to be okay, but I can provide on request): </p> <pre class="lang-cs prettyprint-override"><code> var firstPage = rsExec.Render(format.ToString(), deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs); var numberOfPages = streamIDs.Length + 1; results = new Byte[numberOfPages][]; results[0] = firstPage; if (numberOfPages &gt; 1) { for (int i = 1; i &lt; numberOfPages; i++) { deviceInfo = $@" &lt;DeviceInfo&gt; &lt;OutputFormat&gt;JPEG&lt;/OutputFormat&gt; &lt;StartPage&gt;{i + 1}&lt;/StartPage&gt; &lt;/DeviceInfo&gt;"; results[i] = rsExec.Render(format.ToString(), deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs); } } </code></pre> <p>This generates the report okay, but I expected the streamIDs to become the number of extra pages required, but it always only has one entry in it. Am I doing something stupidly wrong here?</p> <p>I'm using SQL Server 2008 R2.</p>