使用参数启动Infopath表单 [英] Launch Infopath form with parameter
本文介绍了使用参数启动Infopath表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以使用以下方法打开带参数的Infopath表单:
Opening an Infopath form with parameter can be done like this:
System.Diagnostics.Process.Start(PathToInfopath + "infopath.exe", "Template.xsn /InputParameters Id=123");
但这需要我知道Infopath.exe的路径,该路径随Office的每个版本而变化.有没有一种方法可以简单地启动模板并传递参数?还是有找到Infopath.exe驻留位置的标准方法?
But that requires I know the path to Infopath.exe which changes with each version of Office. Is there a way to simply launch the template and pass a parameter? Or is there a standard way to find where Infopath.exe resides?
推荐答案
以下是有关查找Office Apps安装路径的文章:
Here's an article about finding the install path for Office Apps:
http://support.microsoft.com/kb/234788
这篇关于使用参数启动Infopath表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文