Powerpoint in webbrowser control "vb .net" development

R

rexn8r

I posted this question on MAC newsgroup. Inadvertantly offcourse. Newbie :-(

anyways my question is;

I've developed an application in VB .Net 2002. The application runs
powerpoint files (ppt developed in PPT 2000 as well as PPT 2003) in
webbrowser active x control. The PPT files have got animations and slide
transitions. The slide shows in PPT files are set to run continuously until
hit esc key. Now my problem is, after couple of run, the animations stop
behaving.

I'm not doing anything fancy behind the code. I'm just loading the PPT file
in webbrowser active x control (i.e.
webbrowsercontrol1.navigate(strFilePath)).

Any help in this issue would be highly appreciated.
 
S

Steve Rindsberg

I've developed an application in VB .Net 2002. The application runs
powerpoint files (ppt developed in PPT 2000 as well as PPT 2003) in
webbrowser active x control. The PPT files have got animations and slide
transitions. The slide shows in PPT files are set to run continuously until
hit esc key. Now my problem is, after couple of run, the animations stop
behaving.

I'm not doing anything fancy behind the code. I'm just loading the PPT file
in webbrowser active x control (i.e.
webbrowsercontrol1.navigate(strFilePath)).

Hi again. <g>

Describe "stop behaving" in more detail?

And to narrow the problem down by eliminating a few variables:

Will the same show run continuously in PPT standalone (same one as is on the
computer in question, and test it ON the computer in question).

Will the same problem manifest itself if you manually produce a presentation,
in effect duplicating the same steps as you're now automating?
 
R

rexn8r

Hello Steve,

Let me elaborate the problem.

A single PPT file runs for certain duration i.e. 40 sec. Now within 40 Sec,
it may loop once or twice depending upon the animation and slide transition
timings.

Main timer in the application checks for the duration associated with the
PPT file and dispose off when it finishes. Then app loads new PPT file.

It's kind of revolving show with more then one PPT files. Now the problem is
after couple of main loop (all the files run one after another), the
animations in the PPT file stops playing.

I'm using webbrowser active x control so that i don't have to do any coding.
for each PPT file i'm creating new webbrowser control and adding it to the
form and loading the PPT file in it (offcourse i'm disposing off the old one
first).

Is the webbrowser best control in this cenario?

Now if i run the PPT file in a viewer outside the application, it runs/loops
fine.

Thanks,
raxit
 
R

rexn8r

Hello Steve,

I'm affraid that example wouldn't work for me. Because i dont want to use
powerpoint object library. 'Cause i'm lazzy programmer ;-)

Anyways, looking forward to you suggestion..

Raxit
 
R

rexn8r

Just to give you an example of my code;

If timer.value = Duration of the PPT file then
'If curretnly running PPT file the dispose of webbrowswer control
if not webbrowser1 is nothing then
webbrowser1.dispose()
'release com object

System.Runtime.InteropServices.Marshal.ReleaseComObject(webbrowser1)
GC.Collect() 'force garbage collection
End if
'Start new webbrowser contorl with new PPT file
webbrowser1 = new Axwebbrowser
webbrowser1.navigate(strFileName)
Me.Control.Add(webbrowser1)
End IF

Now two problems;

1 As i mentioned in my earlier posts, animation stops after couple of run
(one file after another in sequence)

2. The Dispose method kills the POWERPNT.EXE from the process.
But after a while, POWERPNT.EXE is lurking around and do not get Killed
even by the garbage collector.

Any suggestion would be highly appreciated!!!!!!!!!
 

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