Can not show the ppt image
hi
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jean PaulRank #32 · 38.5K reputationPosted Oct 25, 2011, 4:42 AM EDT
Image1.ImageUrl = Server.MapPath("~/slid.jpg");
(ensure that the slid.jpg is successfully created in the web application folder)
saifullah khanRank #4,887 · 320 reputationPosted Oct 25, 2011, 4:57 AM EDT
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);