首页 > 解决方案 > Office VBA方法参数(powershell)

问题描述

我正在创建一个脚本来操作一些 PowerPoint 演示文件。我需要使用的方法之一是 createvideo 方法。

https://docs.microsoft.com/en-us/office/vba/api/powerpoint.presentation.createvideo

上面的链接显示了参数及其类型,但我不知道范围是什么

例如

质量是 INT,但它是 1-100 吗?我真的不想通过反复试验来找出答案!

有没有一种非常简单的方法可以找到这些信息。

下面是我正在运行的脚本片段

$powerpoint = New-Object -comobject powerpoint.Application
$powerpoint.visible = [Microsoft.Office.Core.MsoTriState]::msoTrue

$powerpoint.Presentations.Open("C:\temp\file.ppt")
$SavePath = "C:\temp\Presentation.mp4"
$powerpoint.ActivePresentation.CreateVideo($savepath,$true,"",1540,30)

30 是质量参数。

欢迎提出想法。

山姆

标签: vbapowershellmethodsparameters

解决方案


推荐阅读