Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用c#缩放powerpoint文件?_C#_Interop_Zooming_Powerpoint - Fatal编程技术网

如何使用c#缩放powerpoint文件?

如何使用c#缩放powerpoint文件?,c#,interop,zooming,powerpoint,C#,Interop,Zooming,Powerpoint,我正在使用Microsoft.Office.Interop.PowerPoint库打开和查看PowerPoint文件。我正在以幻灯片形式打开文件,没有问题。打开文件的代码如下所示: Microsoft.Office.Interop.PowerPoint.Application _pptApp; Microsoft.Office.Interop.PowerPoint.Presentation _ppt; Microsoft.Office.Interop.PowerPoint.Presentatio

我正在使用Microsoft.Office.Interop.PowerPoint库打开和查看PowerPoint文件。我正在以幻灯片形式打开文件,没有问题。打开文件的代码如下所示:

Microsoft.Office.Interop.PowerPoint.Application _pptApp;
Microsoft.Office.Interop.PowerPoint.Presentation _ppt;
Microsoft.Office.Interop.PowerPoint.Presentations _pptPresentations;
Microsoft.Office.Interop.PowerPoint.SlideShowWindow _pptSlideShowWindow;

private void Open(string fileName)
{
      _pptApp = new Microsoft.Office.Interop.PowerPoint.Application();
      _pptPresentations = _pptApp.Presentations;
      //fileName represents the full path of the file
      _ppt = _pptPresentations.Open(fileName, Microsoft.Office.Core.MsoTriState.msoTrue,
                     Microsoft.Office.Core.MsoTriState.msoTrue,Microsoft.Office.Core.MsoTriState.msoFalse);
      _ppt.SlideShowSettings.ShowPresenterView = Microsoft.Office.Core.MsoTriState.msoFalse;    
      _ppt.SlideShowSettings.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeSpeaker;             
      _pptSlideShowWindow = _ppt.SlideShowSettings.Run();
}
上面的代码运行良好。使用
\u pptSlideShowWindow
我可以执行一些操作,比如转到下一张幻灯片
\u pptSlideShowWindow.View.next()
或转到上一张幻灯片
\u pptSlideShowWindow.View.previous()。
我想在幻灯片放映时放大和缩小演示文稿。我一直在四处寻找,还没有找到适合我的解决方案。幻灯片视图具有缩放属性,但为只读:

我尝试过不以幻灯片形式打开,但结果不太好,因为我没有以编程方式以读取模式打开文件

我对这个有点迷茫。在此方面的任何帮助都将不胜感激

问候,, 加索尔