当我尝试将该属性设置为隐藏PPT演示:PowerPoint.ApplicationClass().Visible = False
如何使用COM/IronPython的
我收到以下错误信息:
"Invalid request. Hiding the application window is not allowed."
,我发现这个old thread在eggheadcafe。所以我修改了我的代码,如下所示:
com_ppt = self.com_app.Presentations.Open(filename, WithWindow = False)
但是,这只隐藏了PRESENTATION,但仍然打开APPLICATION窗口。所以,基本上,PPT打开了,但里面没有演示。任何帮助这个神秘将不胜感激。