【发布时间】:2016-06-07 01:07:03
【问题描述】:
slide.Shapes.AddPicture(pictureFileName, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoTrue, shape.Left, shape.Top, shape.Width, shape.Height).ScaleHeight(and, MsoTriState.msoCTrue, MsoScaleFrom.msoScaleFromMiddle);
我正在使用上面的代码行在 ppt 中添加图像,在 Office2010 中没有问题,但如果我在 office2007 中使用此代码,它不起作用,图像没有正确放置。
如果您有更好的办法将图像放入 Powerpoint 2007,请提供帮助
【问题讨论】:
-
你能详细描述一下什么是不工作的,截图也可能有帮助。
标签: c# vb.net powerpoint office-interop office-2007