1
我使用VB.net在Powerpoint中创建图表并产生一个小问题:客户希望图例比原始设计更大。这是Interop的可能吗?Powerpoint修改图表图例宽度
我有一个基本这样的结构:
Dim TargetChartas Microsoft.Office.Interop.PowerPoint.Chart
TargetChart.HasLegend=true
With TargetChart.Legend
.Position = Microsoft.Office.Interop.PowerPoint.XlLegendPosition.xlLegendPositionTop
.Format.TextFrame2.TextRange.Font.Bold = Microsoft.Office.Core.MsoTriState.msoCTrue
.Format.Line.Visible = Microsoft.Office.Core.MsoTriState.msoCTrue
End Width
但我无法找到一个width属性 - 像任何正常的形状posess。
你有什么想法如何做到这一点?
我添加了excel标签,因为图表基本上都是excel图表。
阿格:我需要更多的茶。我刚刚意识到Office 2010具有宽度属性,而2007不具备。所以我只需要检查PowerPoint的版本......哦,快乐......
有这不再是一个问题?如果有,您可以添加自己的答案。 – Fionnuala 2013-02-17 12:30:36
+1给@Remou - 一旦出现问题,立即提交你自己的答案。 – 2013-02-17 15:53:03