C# code to get the Thumbnail image for the uploaded Power point te

K

Kumaresan

Hi,
Iam uploading a Powerpoint template file(.pot) and i want to get the
thumbnail for the first slide of the uploaded .pot file.

Iam able to get the Thumbnail of the uploading image by using this code:
System.Web.HttpContext.Current.Response.ContentType = "image/jpeg";
image = System.Drawing.Image.FromStream(new
System.IO.MemoryStream((byte[])dsSkinColor.Tables[0].Rows[0]["I_Image"]));
System.Int32 _width = image.Width;
System.Int32 _height = image.Height;
System.Drawing.Image _newimage = image.GetThumbnailImage(_width, _height,
null, new System.IntPtr());
_newimage.Save(System.Web.HttpContext.Current.Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Jpeg);


But, Iam not able to get the Thumbnail of the Powerpoit Template file. Could
somebody help me to send code to retrieve the Thumbnail image for the
uploaded .POT file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top