Link to home
Start Free TrialLog in
Avatar of Cmitch
CmitchFlag for Australia

asked on

Remove Password from Powerpoint Files via Microsoft.Office.Interop.PowerPoint

Using Microsoft.Office.Interop.PowerPoint does anyone know how to remove a password from a presentation.
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Presentation class has a password property which you would need to clear

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint._presentation.password.aspx
Do you know what the password is??
Avatar of Cmitch

ASKER

Yes I do know what the password is and know of the password property that can be updated. However how can I open the presentation with password?  Currently I can use the 'open' function to open the presentation, however I am then prompted via pop-up to provide the password.

Is there a way to open the presentation by supplying all the information required and therefore have no user interaction

appPowerPoint.Presentations.Open(strFilename, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse)

Open in new window

.
This is for vba but it works here in 2010 when there are Open and modify passwords

http://officeone.mvps.org/openppt/index.html
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cmitch

ASKER

Is it possible to Add an additional Handler to the PowerPoint event after the presentation is opened and prompted for the password?  Or is there another method where I can 'SendKeys' and provide the required password?