Hi,
How do I open and edit a powerpoint file in asp.net using C#? I have to access a library and a be able to choose a specific file. I've tried other codes but when I click to open the file, it always prompts me to either open or save the file. Is there a way to skip the open and save part?
I just want the powerpoint file to open immediately without the open and save.
I've tried using "
System.Diagnostics.Process.Start("http://it3127:30091/Shared%20Documents/Test.ppsx");
"
But it prompts me for the open and save option.
I've also used this
Microsoft.Office.Interop.PowerPoint.Application pptApp = new Microsoft.Office.Interop.PowerPoint.Application();
Microsoft.Office.Core.MsoTriState ofalse = Microsoft.Office.Core.MsoTriState.msoFalse;
Microsoft.Office.Core.MsoTriState otrue = Microsoft.Office.Core.MsoTriState.msoTrue;
pptApp.Visible = otrue;
pptApp.Activate();
Microsoft.Office.Interop.PowerPoint.Presentations ps = pptApp.Presentations;
Microsoft.Office.Interop.PowerPoint.Presentation p = ps.Open(@"http://it3127:30091/Shared%20Documents/Forms/AllItems.aspx", ofalse, ofalse, otrue);
MessageBox.Show(pptApp.ActiveWindow.Caption);
"
This code is able to open the powerpoint file immediately and allow me to edit, however, the slides are filled with
words or codes, ex
"masterpagefile="~masterurl/default.master" Inherits="Microsoft.sharepoint.webpartpages.webpartpage,microsoft.sharepoint,version=14.0.0.0.0, culture=neutral,publickeytoken" and all these words carry on for 30 slides.
Would really really appreciate if there is another way or a solution to this.
Look forward to your replies.
Thankyou!