我需要访问作者,组织等Power Point属性..访问C#中Power Point文件的文档属性
我该怎么做?
编辑:
这就是我想:
static void TestProperties(Presentation presentation) // Microsoft.Office.Interop.PowerPoint.Presentation;
{
Microsoft.Office.Core.DocumentProperties properties;
properties = (Microsoft.Office.Core.DocumentProperties)presentation.BuiltInDocumentProperties;
Microsoft.Office.Core.DocumentProperty prop;
}
这给了我ClassCastException异常:
无法投型 '系统.__ ComObject' 到接口类型“微软的COM对象.Office.Core.DocumentProperties'
我有一个文件选择器对话框,我选择演示文稿,然后将其传递给TestProperties方法。
嘿,检查编辑。 – vale4674 2012-01-03 15:24:59