Please Help, urgent problem gotoslide

  • Thread starter Thread starter Erik Berglund
  • Start date Start date
E

Erik Berglund

The GotoSlide method disapperes!!?

I get the following error message

"SlideShowView (Unknown Member) Cannot create hyperlink to ."

At the same time SlideShowWindows.Count gives 1 as a result and yet
Methods such as GotoSlide, Next, Last, First disapperes and gives this
error HelpContext = 1000440 whatever that meens?

Please help, this bug is really strange :(
 
Eric,
Sounds like you are using VBA here. Can you post the relevant code? Is
the word .Select anywhere in your code because that will not work in
SlideShow View.
Brian Reilly, PowerPoint MVP
 
brian@not_reillyand.com (Brian Reilly, MS MVP) wrote in message
No .Select in the code.

The wierd thing is that when I run a macro to activate this function
from inside Powerpoint everything works. But when I activate a dll
that uses a callback function to start the loop it breaks down.

This is simply what I do. Even this test case does not work.

ActivePresentation.SlideShowWindow.View.GotoSlide 3

I have also tried to do this using
Application.SlideshowWindow(1).View....
and other alternative ways to

I also tried to use the PowerPointVirewer instead but that breaks down
in a similar way. The run-time stops at:
CreateObject("PowerPointViewer.Application")
Error: 1000440, OLE Automation error.

Here is some

Declare Sub InitServer Lib "C:\Documents and
Settings\erik.ERIK-U7FOHRM489\My Documents\insitiServer.dll" (ByVal
port As Integer)
Declare Sub RegisterListener Lib "C:\Documents and
Settings\erik.ERIK-U7FOHRM489\My Documents\insitiServer.dll" (ByVal
Addr1 As Long)


Type InsitiStruct
ShortVar As Integer
UcharVar As Byte
FloatVar As Single
stringVar As String
End Type

....

RegisterListener AddressOf Myserver
InitServer (8085)

....

Public Function Myserver(ByVal stringVar As String) As String
'On Error Resume Next
ActivePresentation.SlideShowWindow.View.GotoSlide 3

....
 
Eric,
Sounds like you are using VBA here. Can you post the relevant code? Is
the word .Select anywhere in your code because that will not work in
SlideShow View.
Brian Reilly, PowerPoint MVP

Also, I forgot, at one tim eonly I got an error message saying that
VBA could not load hlink.dll

However, I have tried the code on several computers and different
platforms, (2000 and XP) and they all fail the same way.

Cheers
 
Back
Top