M
Mike Hearn
Hi,
I'm sure this must be an FAQ so apologise in advance if you guys answer
it a lot, but I couldn't find anything on it in the FAQs I found on
Google, so here goes ....
I'm trying to get the textual contents of a presentation into another
app via OLE automation. I've got some code to do this and it works fine
*but* it requires the main PowerPoint window to be visible. This is a
big issue as I don't want it to disturb the user on the workstation
while my program is indexing these presentations so having it display,
index, then become invisible again is clearly unacceptable.
I have a nasty feeling the answer will be "you can't do that" as when I
try and open a presentation while the main window is invisible I get
this error:
"Invalid request. The PowerPoint Frame window does not exist."
If I force the window to be created (?) by setting Visible to FALSE, I
get this message:
"Invalid request. Hiding the application window is not allowed."
Gosh, I am naughty!
This is confusing because the exact same construct works fine in Word: I
can open a document, grab the text and close it without anything
appearing on screen.
Any ideas?
thanks -mike
I'm sure this must be an FAQ so apologise in advance if you guys answer
it a lot, but I couldn't find anything on it in the FAQs I found on
Google, so here goes ....
I'm trying to get the textual contents of a presentation into another
app via OLE automation. I've got some code to do this and it works fine
*but* it requires the main PowerPoint window to be visible. This is a
big issue as I don't want it to disturb the user on the workstation
while my program is indexing these presentations so having it display,
index, then become invisible again is clearly unacceptable.
I have a nasty feeling the answer will be "you can't do that" as when I
try and open a presentation while the main window is invisible I get
this error:
"Invalid request. The PowerPoint Frame window does not exist."
If I force the window to be created (?) by setting Visible to FALSE, I
get this message:
"Invalid request. Hiding the application window is not allowed."
Gosh, I am naughty!
This is confusing because the exact same construct works fine in Word: I
can open a document, grab the text and close it without anything
appearing on screen.
Any ideas?
thanks -mike