DeltaOffice word在线编辑控件增加OnIAmReady事件函数,可以在OnIAmReady事件中打开指定文档,避免在页面刷新时可能导致的内存不可读或不可写异常,示例程序如下:
<script language="VBScript">
Sub oframe_OnIAmReady()
msgbox "OnIAmReady"
document.oframe.open('http://localhost/DeltaOfficeDemo/template/deltaoffice.doc',true)
End Sub
</script>