PDA

View Full Version : PowerPoint Hummmmm


Bruce
04-28-2004, 07:52 PM
When using this line I get a loop...It just keeps loading the .ppt file over and over. :wow

Ideas?

File.Run("Autoplay\\PowerPoint Viewer\\PPTVIEW.EXE", "Autoplay\\Docs\\EHS 1-2003.ppt", "", SW_SHOWNORMAL, false);

TJ_Tigger
04-28-2004, 08:02 PM
Where is the action executed?

SUF6NEWBIE
04-28-2004, 08:28 PM
hey Bruce, wild guess.. should the 'false be changed to 'true
wait for 'proggie to finish running before continung ? or something similar
is the code line part of loop of some kind..

maybe file.open instead ?

my 2 cents..

Bruce
04-28-2004, 09:36 PM
No, good idea though SUF6 I tried that... Tigg, on page show.

hey Bruce, wild guess.. should the 'false be changed to 'true
wait for 'proggie to finish running before continung ? or something similar
is the code line part of loop of some kind..

maybe file.open instead ?

my 2 cents..

TJ_Tigger
04-28-2004, 11:30 PM
can you open the file normally with pptviewer?

Is there other code that would open the file or interfer with the File.Run action?

Bruce
04-29-2004, 10:24 AM
Yes I can and no their is nothing that would interfer. The next and only other code line is a page jump. This all has it's own page.

TJ_Tigger
04-29-2004, 10:46 AM
Yes I can and no their is nothing that would interfer. The next and only other code line is a page jump. This all has it's own page.
Don't know. Have you used the Debug commands to show what is going on as it opend the ppt?

Mark
04-29-2004, 03:17 PM
When using this line I get a loop...It just keeps loading the .ppt file over and over. :wow

Ideas?


If you put a Dialog.Message() action before your File.Run() action does it get executed as well? If so the event that you have your File.Run() action seems to be in an endless loop.

Bruce
04-29-2004, 09:05 PM
Ok the dialog is doing the same thing!!! What am I doing wrong! :huh

Bruce
05-01-2004, 01:10 AM
Anyone have sone insight?...

Worm
05-01-2004, 05:37 AM
Hey Bruce,

Something similar to this happpened to me when I was using the Fade In/Out effect. For some reason, AMS was firing the On Show event more than once. I never figured out why, but was able toget around it with something like this.


--Check to see if PPT has already been fired, if so skip the File.Run
if (blnPPTStarted == nil) or (blnPPTStarted == false) then
File.Run("Autoplay\\PowerPoint Viewer\\PPTVIEW.EXE", "Autoplay\\Docs\\EHS 1-2003.ppt", "", SW_SHOWNORMAL, false);
blnPPTStarted = true;
end


If you want the PPTViewer to fire the next time that page is shown, make sure to set blnPPTStarted to false before jumping back to that page.


Anyone have sone insight?...

Bruce
05-01-2004, 10:03 AM
Thanks Worm!

Worm
05-01-2004, 10:07 AM
No problem.

Still, it's odd that AMS fires the On Show more than once. Out of curiousity, are you doing anything out of the ordinary on the load of the page/app?



Thanks Worm!

Bruce
05-01-2004, 04:55 PM
No, but I do have some Global goodies going on. That shouldn't be an issue.

TJ_Tigger
05-01-2004, 08:58 PM
No, but I do have some Global goodies going on. That shouldn't be an issue.
Debug.SetTraceMode(true)
Debug.ShowWindow(true)

Use those on project startup to open a window and see what code is being executed and causing your commands to loop.