Is there any unique ID associated with each Powerpoint presentation file (.ppt or .pptx)?

时光怂恿深爱的人放手 提交于 2019-12-12 03:15:53

问题


I have checked MSDN and there seems to be no unique ID (UUID or whatnot) property in the Presentation object model ( https://msdn.microsoft.com/EN-US/library/office/ff746640(v=office.15).aspx )

According to the code example, a Presentation can only be identified by a name only. e.g.

Presentations("Sample Presentation").Slides.Add 1, 1

Is there anyway I can identify a presentation by way of an ID? Hopefully it will looks something like this

Presentations("067e6162-3b6f-4abc-a171-2470b63dff00").Slides.Add 1, 1

回答1:


The PowerPoint object model doesn't provide any special ID. You can use the FullName property of the Presentation class to identify presentations uniquely.

If you are not satisfied with that solution you may consider adding your own ID as a custom document property. The CustomDocumentProperties property of the Presentation class returns a DocumentProperties collection that represents all the custom document properties for the specified presentation.



来源:https://stackoverflow.com/questions/28310697/is-there-any-unique-id-associated-with-each-powerpoint-presentation-file-ppt-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!