How to open Password Protected PPT File

M

miztaken

Hi there,
I dont know if this the right forum to ask this question or not? If
not, please guide me through.
If yes,
I need to supply password to PPT file progrmatically.
I am using Office Interop and .NET 2.0 (C#)
I am coding like this:

ApplicationClass appPowerPoint = new ApplicationClass();
Presentation presentation = appPowerPoint.Presentations.Open(FileName,
Microsoft.Office.Core.MsoTriState.msoCTrue,
Microsoft.Office.Core.MsoTriState.msoCTrue,
Microsoft.Office.Core.MsoTriState.msoCTrue);

As you can see Presentations.Open dont have any argument where i can
input password.
For word and excel password input argument is available but i cant
find that for PPT.
I do know there is presentation.Password variable, but we can use this
only after PPT is opened?
So can anybody help me figure out what am i missing?

Thank You
miztaken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top