C# 创建PowerPoint演示文稿需要哪些参考资料?

C# 创建PowerPoint演示文稿需要哪些参考资料?,c#,dll,powerpoint,C#,Dll,Powerpoint,我在使用以下代码时遇到问题: Presentation ppt = new Presentation(); 如何知道要查找和引用哪个dll?假设已安装Microsoft Office,请执行以下步骤: 打开项目菜单>添加引用>COM选项卡>Microsoft PowerPoint xx.x对象库 在文件顶部添加以下using语句: using Microsoft.Office.Interop.PowerPoint; 确保引用的嵌入互操作类型属性设置为true: 显然,您还需要在客户端计算机上

我在使用以下代码时遇到问题:

Presentation ppt = new Presentation();

如何知道要查找和引用哪个dll?

假设已安装Microsoft Office,请执行以下步骤:

打开项目菜单>添加引用>COM选项卡>Microsoft PowerPoint xx.x对象库

在文件顶部添加以下using语句:

using Microsoft.Office.Interop.PowerPoint;
确保引用的嵌入互操作类型属性设置为true:

显然,您还需要在客户端计算机上安装Microsoft Office