const range = await app.ActiveDocument.Range(0, 1)
range.Text = '123'
await app.ActiveDocument.SetReadOnly({
Value: true
})
修改文本后,立即设置文档只读,会报 The file is read-only and can't be modified!
使用的sdk是 1.1.19 版本
const range = await app.ActiveDocument.Range(0, 1)
range.Text = '123'
await app.ActiveDocument.SetReadOnly({
Value: true
})
修改文本后,立即设置文档只读,会报 The file is read-only and can't be modified!
使用的sdk是 1.1.19 版本