R
Roland Leisch
Hello!
I have a very strange problem:
I try to change the active window (so change are applied to the right
window if several windows are open) and therefore I wrote a method which
searches for a special custom property and if it finds the needed one
this presentation is activated (at last it should be!). The problem now
is, that I cannont activate the presentations since Windows - Count is 0
and I get an exception.
Can anybody give me a hint where the problem could be? My main problem
is that I cant understand, why Windows collection can be 0 (I thought
that at least one window has to be opened)?
Im using a Java-COM bridge to integrate Powerpoint in an ole container
within my Java application.
Thanks in advance!
Source:
((_PresentationImpl) presentations.item(new
Variant(1))).getWindows().item(new Int(1)).activate();
I thought that this piece of code should work alsways since there has
always to be a least one presentation and one window but there is an
exception thrown in getWindows since count is zero?!?
I have a very strange problem:
I try to change the active window (so change are applied to the right
window if several windows are open) and therefore I wrote a method which
searches for a special custom property and if it finds the needed one
this presentation is activated (at last it should be!). The problem now
is, that I cannont activate the presentations since Windows - Count is 0
and I get an exception.
Can anybody give me a hint where the problem could be? My main problem
is that I cant understand, why Windows collection can be 0 (I thought
that at least one window has to be opened)?
Im using a Java-COM bridge to integrate Powerpoint in an ole container
within my Java application.
Thanks in advance!
Source:
((_PresentationImpl) presentations.item(new
Variant(1))).getWindows().item(new Int(1)).activate();
I thought that this piece of code should work alsways since there has
always to be a least one presentation and one window but there is an
exception thrown in getWindows since count is zero?!?