Hi I do have a very simple case of adding images and saving as PPT to the template. I am doing this in .NET MVC. Following is the controller
public ActionResult GetPPTFile()
{<span style="color:#2b91af;">Presentation</span> presentation = <span style="color:blue;">new</span> <span style="color:#2b91af;">Presentation</span>(Server.MapPath(<span style="color:#a31515;">@"..\BaseTemplate.ppt"</span>)); presentation.Pictures.Add(<span style="color:blue;">new</span> <span style="color:#2b91af;">Picture</span>(presentation, Server.MapPath(<span style="color:#a31515;">@"..\Images\orderedList0.png"</span>))); presentation.Pictures.Add(<span style="color:blue;">new</span> <span style="color:#2b91af;">Picture</span>(presentation, Server.MapPath(<span style="color:#a31515;">@"..\Images\orderedList0.png"</span>))); presentation.Pictures.Add(<span style="color:blue;">new</span> <span style="color:#2b91af;">Picture</span>(presentation, Server.MapPath(<span style="color:#a31515;">@"..\Images\orderedList0.png"</span>))); presentation.Pictures.Add(<span style="color:blue;">new</span> <span style="color:#2b91af;">Picture</span>(presentation, Server.MapPath(<span style="color:#a31515;">@"..\Images\orderedList0.png"</span>))); <span style="color:#2b91af;">MemoryStream</span> memoryStream = <span style="color:blue;">new</span> <span style="color:#2b91af;">MemoryStream</span>(); presentation.Save(memoryStream,<span style="color:#2b91af;">SaveFormat</span>.Ppt); <span style="color:blue;">return</span> File(<span style="color:blue;">new</span> <span style="color:#2b91af;">MemoryStream</span>(memoryStream.GetBuffer(), <span style="color:blue;">false</span>), <span style="color:#a31515;">"application/x-mspowerpoint"</span>, <span style="color:#a31515;">"Chart1.ppt"</span>); }<br><br>My view is having the following code <br><br><span style="background:yellow;">@</span>Html.ActionLink(<span style="color:#a31515;">"PPT File"</span>, <span style="color:#a31515;">"GetPPTFile"</span>, <span style="color:#a31515;">"Home"</span>, <span style="color:blue;">null</span>, <span style="color:blue;">new</span> { id = <span style="color:#a31515;">"download"</span>})
File is getting created but none of my pictures are seen. Any ideas ?