为什么在代理中保存不了文档?
xinzp 2003-10-29 10:11:31 B/S方式,表单上有一个按钮,操作是运行一个保存文档的代理
Dim s As New NotesSession
Dim doc As NotesDocument
Set doc = s.DocumentContext
Dim flag As Boolean
flag= doc.Save (True,False)
If flag=True Then
Print "save"
Else
Print "can't save"
End If
flag 总是false,也就是没有保存文档
Save的4种可能参数都试过了,还是不行,而用公式保存文档却可以!
我还有一个代理
Set newdoc=db.CreateDocument
newdoc.Form="NumberForm"
Call newdoc.AppendItemValue ("NumberName",aNumber)
Call newdoc.AppendItemValue ("NumberMax",0)
Call newdoc.Save (True,False)
却可以保存文档!
是不是DocumentContext的文档不能在后台保存啊?
如果想在后台保存,用什么办法?