I have a Presentation object as follows,
using Presentation = Microsoft.Office.Interop.PowerPoint.Presentation;
Presentation pptPresentation = pptApplication.Presentations.Add(MsoTriState.msoFalse);
after some processing, at the time of saving,
pptPresentation.SaveAs(@"c:\temp\myPPT.pptx", Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType.ppSaveAsDefault, MsoTriState.msoTrue);
it's throwing an exception.
I will greatly appreciate any help with this, it's got me stumped.
Environment Details:- Windows 2008 Server(x64), .NET 3.5, IIS7
Finally I got the magical solution.
I just created two folders in the Windows 2008 Server
C:\Windows\SysWOW64\config\systemprofile\Desktop and C:\Windows\System32\config\systemprofile\Desktop
And after applying read permission to the folders, the ppt is getting save in the local directory of the server. Source