开发者

Find the context under which an InfoPath form is running

开发者 https://www.devze.com 2022-12-13 09:00 出处:网络
In InfoPath code behind is there a way to find the context under which the form is running. So we\'开发者_Python百科re looking at either the InfoPath client itself or whether it\'s running under InfoP

In InfoPath code behind is there a way to find the context under which the form is running. So we'开发者_Python百科re looking at either the InfoPath client itself or whether it's running under InfoPath Forms Server.

Thanks.


Add the following code to your FormEvents_Loading method. This checks whether the form is browser-based or not:

if (this.Application.Environment.IsBrowser) 
{ 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消