• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 997
  • Last Modified:

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.
0
Cmitch
Asked:
Cmitch
  • 2
  • 2
  • 2
1 Solution
 
CodeCruiserCommented:
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
0
 
JSRWilsonCommented:
Do you know what the password is??
0
 
CmitchAuthor Commented:
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

.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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

http://officeone.mvps.org/openppt/index.html
0
 
CodeCruiserCommented:
I did not look at above comment originally but here is another link to ProtectViewWindows.

http://msdn.microsoft.com/en-us/library/office/ff822367.aspx
0
 
CmitchAuthor Commented:
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?
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now