How to supress write/write password popup showing up when opening a document?

T

Tomasz Jastrzebski

Hello everybody,

How do I eliminate write/write password popup when opening document?

In code I set DisplayAlerts=ppAlertsNone and specify ReadOnly property in
the Presentations.Open() method but the popup prompth still shows up. Is it
a bug? I am using PowerPoint 2003 SP1.

Thank you for any hints.

Tomasz

Sample code:

Imports PPT = Microsoft.Office.Interop.PowerPoint

Dim application As PPT.Application
application = New PPT.Application
application.DisplayAlerts = PPT.PpAlertLevel.ppAlertsNone

Dim presentation As PPT.Presentation =
_application.Presentations.Open(filePath, _
WithWindow:=Microsoft.Office.Core.MsoTriState.msoFalse,
ReadOnly:=Microsoft.Office.Core.MsoTriState.msoTrue)
 

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