Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    PowerPoint Hummmmm

    When using this line I get a loop...It just keeps loading the .ppt file over and over.

    Ideas?

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

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Where is the action executed?
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    SUF6NEWBIE Guest
    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..
    Last edited by SUF6NEWBIE; 04-28-2004 at 07:30 PM.

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    No, good idea though SUF6 I tried that... Tigg, on page show.

    Quote Originally Posted by SUF6NEWBIE
    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..

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    can you open the file normally with pptviewer?

    Is there other code that would open the file or interfer with the File.Run action?
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    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.

  7. #7
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Bruce
    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?
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  8. #8
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943
    Quote Originally Posted by Bruce
    When using this line I get a loop...It just keeps loading the .ppt file over and over.

    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.
    MSI Factory The Next Generation Intelligent Setup Builder

  9. #9
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Ok the dialog is doing the same thing!!! What am I doing wrong!

  10. #10
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Anyone have sone insight?...

  11. #11
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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.

    Code:
    --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.


    Quote Originally Posted by Bruce
    Anyone have sone insight?...

  12. #12
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Thanks Worm!

  13. #13
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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?



    Quote Originally Posted by Bruce
    Thanks Worm!

  14. #14
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    No, but I do have some Global goodies going on. That shouldn't be an issue.

  15. #15
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Bruce
    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.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. KB: Running Microsoft PowerPoint Viewer from CD-ROM
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 01-13-2005, 07:56 AM
  2. Indezine Article: PowerPoint and AutoPlay Media Studio 5.0
    By Ted Sullivan in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 03-09-2004, 09:26 AM
  3. Opening a Microsoft PowerPoint Presentation
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:49 PM
  4. HOWTO: Run the PowerPoint Viewer Directly from a CD-ROM
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 03:32 PM
  5. powerpoint presentation help
    By alff992 in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 09-04-2001, 08:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts