c# - Starting application before target application -
i have c# windows forms application need run before microsoft infopath.
my application needs have access parameters passed in infopath. application processes parameter, has conditional logic, sets registry key/value. needs open infopath (with parameters passed in first time around) , close.
eg
1. user opens infopath param "c:\file.xml" 2. before infopath starts need application open , able access above param 3. application it's stuff 4. application starts infopath instance param above
basically need middle man. know how open infopath after using process.start unsure of how "intercept" user's request open infopath, open application , open infopath once application has finished.
i suggest replacing infopath executable own , afterwards starting "original one" (which have stored under different name of course).
Comments
Post a Comment