C# powerpoint形状的替代方法。导出方法
我想将形状从ppt导出到图像。我正在使用C# powerpoint形状的替代方法。导出方法,c#,.net,powerpoint,office-interop,C#,.net,Powerpoint,Office Interop,我想将形状从ppt导出到图像。我正在使用PowerPointapi的shape.Export方法 比如: curShape.Export(path + imageName,JPG_Or_PNG, (int)this.myPPTProcessor.SlideWidth, (int)this.myPPTProcessor.SlideHeight, PpExportMode.ppRelativeToSlide); 但我发现,在Office 2013中,他们已经取消了对shape.Export
PowerPoint
api的shape.Export
方法
比如:
curShape.Export(path + imageName,JPG_Or_PNG, (int)this.myPPTProcessor.SlideWidth, (int)this.myPPTProcessor.SlideHeight, PpExportMode.ppRelativeToSlide);
但我发现,在Office 2013中,他们已经取消了对shape.Export()
方法的支持,因此不推荐使用。依赖这种方法是有风险的
请向我推荐一种将形状导出为图像的解决方案。如果Office 2010也使用此选项,则此选项已被删除/撤消。但准确地说,它不是被移除的,而是隐藏的。它是为了兼容性而保留的,我认为如果你依赖它,风险相当低。所以,走这条路…好吧,我在一个脚本中使用它,它也运行在2010年,事实上,当我尝试在2013年使用它时,它被破坏了。请看我最近的问题: