以ppt为例,其中Path返回路径,FullName返回文件名
//ppt var FullPath= Path.Combine(Globals.ThisAddIn.Application.ActivePresentation.Path, Globals.ThisAddIn.Application.ActivePresentation.FullName);
word和excel类似