vba - 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 是质量参数。
欢迎提出想法。
山姆
解决方案
推荐阅读
- amazon-web-services - 主机上运行的服务器是否接受端口 5432 上的 TCP/IP 连接?
- javascript - 如果在另一个输入文本中使用 onkeyup 事件按下 Tab,如何将光标放在输入文本中?
- bash - exec-maven-plugin 等效/替代
- python - 如何遍历 Python 中的字符串列表并连接属于标签的字符串?
- python - 如何在Python中不循环获取键的值
- swiftui - 如何使用完成处理程序填写列表 [SWIFT UI]
- flutter - 带有 2 个 setState 的按钮 onPressed 异步方法
- android-layout - 如何根据卡片中的文字动态扩展 CARD 小部件的高度大小?
- firebase - Flutter 应用程序因同时交易而崩溃 (cloud_firestore)
- ios - 以特定间隔重复本地通知