如 果您更新了以前发布的表单模板,并且想要更新基于该表单模板的现有表单,可以向更新后的表单模板添加当用户打开某个现有表单时运行的脚本。当用户打开某个 现有表单时,InfoPath 将在发布位置查看其关联的表单模板的版本号。如果位于发布位置的表单模板的版本号比现有表单中的版本号新(说明前者已更新过),InfoPath 将运行该事件中的代码以更新现有的表单。
//=======
// The following function handler is created by Microsoft Office InfoPath.
// Do not modify the name of the function, or the name and number of arguments.
//=======
function XDocument::OnVersionUpgrade(eventObj)
{
// Write your code here
}
'=======
' The following function handler is created by Microsoft Office InfoPath.
' Do not modify the name of the function, or the name and number of arguments.
'=======
Sub XDocument_OnVersionUpgrade(eventObj)
' Write your code here
End Sub
注释 在请参阅节中可以找到指向有关发布表单模板的详细信息的链接。
此过程可用于向表单模板添加下列事件处理程序:
声明:欢迎各大网站转载本站文章,还请保留一条能直接指向本站的超级链接,谢谢!
第1页 | 第2页 | 第3页 | 第4页 | 第5页 | 第6页 | 第7页 | 第8页时间:2007-7-19 21:16:20,点击:0
上一篇:调试InfoPath 2007脚本【声明】:以上文章或资料除注明为Office吧自创或编辑整理外,均为各方收集或网友推荐所得。其中摘录的内容以共享、研究为目的,不存在任何商业考虑。如有任何异议,请与本站联系,联系邮箱:thinkou@126.com,本站确认后将立即撤下。谢谢您的支持与理解!
相关评论