C#的documentwindow里面有zoom的选项。
可是用已打开的presentation对象怎么也打不开windows,用windows.count返回发现windows.count值为0。
要如何弄啊。代码如下:powerpoint.application pa = new powerpoint.applicationClass();
powerpoint.presentation pp = pa.presentations.open(file_name, Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse);pp.windows[1].view.zoom = 80;可是就是提示index is invalid, 什么什么should be in the range of 1 to 0;
明明打开presentation了,为什么pp.windows会是空的呢?
可是用已打开的presentation对象怎么也打不开windows,用windows.count返回发现windows.count值为0。
要如何弄啊。代码如下:powerpoint.application pa = new powerpoint.applicationClass();
powerpoint.presentation pp = pa.presentations.open(file_name, Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoFalse);pp.windows[1].view.zoom = 80;可是就是提示index is invalid, 什么什么should be in the range of 1 to 0;
明明打开presentation了,为什么pp.windows会是空的呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货