String strTemplate;
strTemplate = Server.MapPath(System.IO.Path.Combine("~/UploadsPPT", "PPTslide.pptx"));
var app = new Microsoft.Office.Interop.PowerPoint.Application();
var pres = app.Presentations;
var file = pres.Open(strTemplate, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
Microsoft.Office.Interop.PowerPoint.SlideShowSettings slideSetting = file.SlideShowSettings;
slideSetting.Run();
i am using above code to open ppt..,this code works well in file system
But when hosted on iis i get error as
: PowerPoint could not open the file.
Can any one provide me solution.
Thanks & Regards,
Alokssm