R
rexn8r
I've developed an app in VB .Net 2002. It displays PPT files in WebBrowswer
control.
The file would run a PPT file for certain duration i.e. 40 sec and then
another PPT file is being loaded. So it's kind of multiple powerpoint show.
Every time i run a new PPT file, i'm dispossing off the current webbrowswer
control and creating new one and then load new file in it. The code snippet
is as under;
Timer Event:
If timer.value = duration of the file then
if not WebBrowswer1 is nothing then
WebBrowswer1.dispose() ' dispose off current control
System.Runtime.InteropServices.Marshal.ReleaseComObject(webbrowser1)
GC.Collect() 'force garbage collection
End IF
'load new webbrowswer control with new PPT file.
WebBrowswer1 = New AxSHDocVw.AxWebBrowser()
Me.Controls.Add(WebBrowswer1)
WebBrowswer1.navigate(strFilePath)
End if
Now the problems i'm facing;
1. After a couple of run (one file after another), sometimes the animation
or transition stops in the PPT file. (intermetent problem, happens on some
system and doesn't on another)
2. After couple of run sometimes the POWERPNT.EXE do not get disposed off
from the process. It lurks around. i assume that's what causing the animation
not to run correctly.
Can anybody help me with these problems? it's quite urgernt.
Thanks
control.
The file would run a PPT file for certain duration i.e. 40 sec and then
another PPT file is being loaded. So it's kind of multiple powerpoint show.
Every time i run a new PPT file, i'm dispossing off the current webbrowswer
control and creating new one and then load new file in it. The code snippet
is as under;
Timer Event:
If timer.value = duration of the file then
if not WebBrowswer1 is nothing then
WebBrowswer1.dispose() ' dispose off current control
System.Runtime.InteropServices.Marshal.ReleaseComObject(webbrowser1)
GC.Collect() 'force garbage collection
End IF
'load new webbrowswer control with new PPT file.
WebBrowswer1 = New AxSHDocVw.AxWebBrowser()
Me.Controls.Add(WebBrowswer1)
WebBrowswer1.navigate(strFilePath)
End if
Now the problems i'm facing;
1. After a couple of run (one file after another), sometimes the animation
or transition stops in the PPT file. (intermetent problem, happens on some
system and doesn't on another)
2. After couple of run sometimes the POWERPNT.EXE do not get disposed off
from the process. It lurks around. i assume that's what causing the animation
not to run correctly.
Can anybody help me with these problems? it's quite urgernt.
Thanks