02-11-2015 07:24 AM
I am trying to generate Power Point Report in my code.
Right now i am closing the entire Power Point application after creating/Opening a PPT. i just want to close Specifc Power Point File And Leave other PPT's Open (If Opened).if no other PPT's are open i just want to quit the application.
oPPT.ActivePresentation.Save
oPPT.ActivePresentation.Close
oPPT.Quit
Is there any solution to keep the open presentations not to get closed?
02-18-2015 09:12 AM
Hi sunilpadikar77,
I don't know the PowerPoint API well but it seems to me "oPPT.Quit" closes ppt and "oPPT.ActivePresentation.Close" closes the file.
If you don't want to close ppt ypi shouldn't call "oPPT.Quit". When you have other Presentation objects defined in DIAdem you know if there are other files opened.
Refer to the ppt visual basic reference help for supported objects and there methods.
Kind Regards,
Philipp
02-23-2015 01:28 AM
Hi Philip Kost,
Thanks for your reply.
i am opening only one ppt in Diadem, Rest all PPT's are opened by the user. i want to close only that PPT which i opened from Diadem. if No other PPT's are opened i should close the PPT Application.
02-23-2015 06:13 AM
Hi,
I don't know if there is any functionality.
I guess there is a function which returns the count of loaded files or presentation. This is a PowerPoint specific function. If there is one it will be mentioned in the visual basic reference help.
Regards,