if (FileUpload1.HasFile) { string file = System.IO.Path.GetFullPath(FileUpload1.PostedFile.FileName); string filname = FileUpload1.PostedFile.FileName; //UPLOADS THE FILE INTO THE FOLDER FileUpload1.PostedFile.SaveAs(Server.MapPath("~\\NewFolder1\\") + FileUpload1.FileName); //TAKES THE PATH and file string strPath = Server.MapPath(Request.ApplicationPath) + "~/NewFolder1/" + filname; //assign the file to ppt ApplicationClass pptApplication = new ApplicationClass(); Presentation pptPresentation = pptApplication.Presentations.Open(strPath, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse); var slides = new List<string>(); targetPath = Server.MapPath("~/NewFolder1/"); targetPath += "\\{0}"; for (var i = 1; i <= pptPresentation.Slides.Count; i++) { . . </string>
I am having the same issue in my applictaion. Where you able to find a solution for this issue. Thanks in advance for your help,
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)