hi i have a web page and i want to upload ppt file on it,convert it into imgage in show it into an image tag. the ppt file has one slide. here is the code:
String filePath; filePath = Server.MapPath("/Some/Virtual/Path/on/your/WebSite"); filePath += "\\{0}"; String fileName = "slid.jpg"; // This should be dynamic too so you can have more that one picture of a slide String fileNameAndPath = String.Format(filePath, "slid.jpg"); pptPresentation.Slides[1].Export(fileNameAndPath, "jpg", 320, 240); Image1.ImageUrl = String.Format("/Some/Virtual/Path/on/your/WebSite/{0}", fileName);
Jean PaulPosted Oct 25, 2011, 8:42 AM
Image1.ImageUrl = Server.MapPath("~/slid.jpg");
(ensure that the slid.jpg is successfully created in the web application folder)
saifullah khanPosted Oct 25, 2011, 8:57 AM