Launch Infopath form with parameter
问题 Opening an Infopath form with parameter can be done like this: System.Diagnostics.Process.Start(PathToInfopath + "infopath.exe", "Template.xsn /InputParameters Id=123"); 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? 回答1: Play around with System.Diagnostics.ProcessStartInfo which allows you to specify a file you wish to