Programming Powerpoint

  • Thread starter Thread starter XRay777
  • Start date Start date
X

XRay777

I have created a presentation that has textboxes that asks for various
input from the user as they go through the slides. The information is
saved in a database during slide transitions.

Since I don't want the user to actually OPEN powerpoint, I have
installed the powerpoint viewer and saved this thing as a PPS.

Is there any way to prevent Powerpoint from saying "do you want to save
the changes to the file?" when done viewing the PPS. I am surprised it
even asks this, but it does. Changing the file attribute to READ ONLY
does not work either.

Anyone with advise?

Thanks.
 
The viewer has no option to save a file. There is no difference in .ppt and
..pps, other than the way they open. The viewer will open them both the same way
and that is in the slideshow mode.

--
<>Please post all follow-up questions/replies to the newsgroup<>
<><>Email unless specifically requested will not be opened<><>
<><><>Do Provide The Version Of PowerPoint You Are Using<><><>
<><><>Do Not Post Attachments In This Newsgroup<><><>
Michael Koerner [MS PPT MVP]


I have created a presentation that has textboxes that asks for various
input from the user as they go through the slides. The information is
saved in a database during slide transitions.

Since I don't want the user to actually OPEN powerpoint, I have
installed the powerpoint viewer and saved this thing as a PPS.

Is there any way to prevent Powerpoint from saying "do you want to save
the changes to the file?" when done viewing the PPS. I am surprised it
even asks this, but it does. Changing the file attribute to READ ONLY
does not work either.

Anyone with advise?

Thanks.
 
I believe you are seeing it run in PPT, not the viewer. The viewer doesn't
support any sort of code or activex control.

Austin Myers
MS PowerPoint MVP Team

PowerPoint Video and PowerPoint Sound Solutions www.pfcmedia.com
 
XRay777 said:
I have created a presentation that has textboxes that asks for various
input from the user as they go through the slides. The information is
saved in a database during slide transitions.

Since I don't want the user to actually OPEN powerpoint, I have
installed the powerpoint viewer and saved this thing as a PPS.

Is there any way to prevent Powerpoint from saying "do you want to save
the changes to the file?" when done viewing the PPS. I am surprised it
even asks this, but it does. Changing the file attribute to READ ONLY
does not work either.

If it's asking that, it's running in PowerPoint, not the viewer.
Saving the file as a PPS doesn't force it to use the viewer.

As others have mentioned, if it were running in the viewer, the vba code I
assume is in the presentation wouldn't work.

If you really do have code in the presentation, do this just before closing it:

ActivePresentation.Saved = True
 
Steve my get away with this but I have always used
ActivePresentation.close (False)
to close a presentation without saving or asking for saving.

Brian Reilly, MVP
 
MS MVP Brian Reilly said:
Steve my get away with this but I have always used
ActivePresentation.close (False)
to close a presentation without saving or asking for saving.

No wonder your code's so much fun to tech-edit, Mr.Wright.

That won't compile, much less run. ;-)

OBTW, Happy Birthday. Did you get the present I sent you t'other day?
 
I prefer to use ActivePresentation.Saved = True sprinkled liberally
throughout the code. Any time the code causes something to change that
would prompt it to ask you to save, throw that line into the code.
Application.Quit will close without asking about saving, but unless you
are trapping the Escape key, it will ask about saving when the Escape key
is hit.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
David M. said:
I prefer to use ActivePresentation.Saved = True sprinkled liberally
throughout the code.

Any time the code causes something to change that
would prompt it to ask you to save, throw that line into the code.
Application.Quit will close without asking about saving, but unless you
are trapping the Escape key, it will ask about saving when the Escape key
is hit.

VERY good point.
 

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

Back
Top