WPS 基础接口 > 演示 API 参考 > Presentations > 方法 > Presentations.CheckOut 方法
从服务器向本地计算机复制指定演示文稿以进行编辑。返回表示签出演示文稿的本地路径和文件名的 String 类型的值。

语法

表达式.CheckOut(FileName)

表达式   一个代表 Presentations 对象的变量。

参数

名称 必选/可选 数据类型 描述
FileName 必选 String 演示文稿的服务器路径和名称。

返回值
Nothing

说明

若要利用 WPP 中的协作功能,演示文稿必须保存在 SharePoint Portal Server 上。

示例

本示例验证演示文稿是否可以签出且未被其他用户签出。如果演示文稿可以签出,则将演示文稿复制到本地计算机以进行编辑。

示例代码
function CheckOutPresentation(strPresentation) {
let tion = Presentations
if(tion.CanCheckOut(strPresentation) == true) {
  tion.CheckOut(strPresentation)
  tion.Open(strFileName)
}
else {
  MsgBox("You are unable to check out this " +
  "presentation at this time.")
}
}

若要调用上述子程序,请使用下列子程序并用在上面备注部分中提到的服务器上的实际文件替换“http://servername/workspace/report.ppt”文件名。

示例代码
function CheckPPTOut() {
CheckOutPresentation("http://servername/workspace/report.doc")
}

checkout 方法


请参阅