Displaying multi-page/frame TIFF file in ASP.Net 2.0
<p>I'm trying to display a multi-page/frame TIFF file on a web page. All I get displayed is the first page.<br>
I can also display any single page in the mutli-page file using SetActiveFrame to select the appropriate page. I just can't display the entire file.<br>
My code:</p>

<pre><code>Response.ContentType = "image/jpeg";
Image image = Image.FromFile("MyTiff.tif");
int frameCount = image.GetFrameCount(Imaging.FrameDimension.Page);
for (int index = 0; index &lt; frameCount; index++)
{
    image.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Page, index);
    image.Save(Response.OutputStream, Imaging.ImageFormat.Jpeg);
} 
</code></pre>

<p>I also tried making each page a separate image in a collection of images, to completely disassociate each image from the TIFF file, and then saving the collection of images to the web page. This also resulted in only the first image being displayed on the web page.</p>

<p>Thanks</p>
