A
Asian
Hello Experts,
I have very similar question with the following one.
"Subject: Help: opening password protected powerpoint without user
interaction
http://www.microsoft.com/office/com...20f8&catlist=&dglist=&ptlist=&exp=&sloc=en-us
As John answered in the threads, I tried to resolve it with using timer and
sendkeys. But I cannot resolve it perfectly. It sometimes failed because of
the dialog seems not always be active (foreground). I used SetForeground and
SetWindowPos to make PowerPoint window move Foreground and TOPMOST. But
sendkeys doesnot always send the password dialog.
I also skip the IRM protected dialog. So I'd like to use same way for both
IRM related dialog and Password dialog. And my application will run not only
on English UI version of PPPT but also Japanese UI version.
Is there any way to close those modal dialog that opened by PowerPoint in
the code?
My environment:
Development env: VS2008 C# with Office PIA (Office2007/2003)
Run env: Office2007/2003 on Vista / Win7
My program overview:
Console application. Launch PPT, open a ppt file, run slideshow, close the
file and Quit PPT. If file is protected, I'd like to skip them.
If there is no way to close the dialog, I'd like to quit/Kill PPT even when
the modal dialog is opened.
Please do help me with any possible ideas, in this regard.
Hopefully I could tell you my intention correctly with my poor English.
Thanks in advance,
Asian
I have very similar question with the following one.
"Subject: Help: opening password protected powerpoint without user
interaction
http://www.microsoft.com/office/com...20f8&catlist=&dglist=&ptlist=&exp=&sloc=en-us
As John answered in the threads, I tried to resolve it with using timer and
sendkeys. But I cannot resolve it perfectly. It sometimes failed because of
the dialog seems not always be active (foreground). I used SetForeground and
SetWindowPos to make PowerPoint window move Foreground and TOPMOST. But
sendkeys doesnot always send the password dialog.
I also skip the IRM protected dialog. So I'd like to use same way for both
IRM related dialog and Password dialog. And my application will run not only
on English UI version of PPPT but also Japanese UI version.
Is there any way to close those modal dialog that opened by PowerPoint in
the code?
My environment:
Development env: VS2008 C# with Office PIA (Office2007/2003)
Run env: Office2007/2003 on Vista / Win7
My program overview:
Console application. Launch PPT, open a ppt file, run slideshow, close the
file and Quit PPT. If file is protected, I'd like to skip them.
If there is no way to close the dialog, I'd like to quit/Kill PPT even when
the modal dialog is opened.
Please do help me with any possible ideas, in this regard.
Hopefully I could tell you my intention correctly with my poor English.
Thanks in advance,
Asian