I have an Infopath 2007 form hosted on MOSS 2007. The code behind the form is written in C#. In this context, System.Environment.MachineName
return the server name.
How can I get the name of the computer from which the client is filling this form?
I have an Infopath 2007 form hosted on MOSS 2007. The code behind the form is written in C#. In this context, System.Environment.MachineName
return the server name.
How can I get the name of the computer from which the client is filling this form?
If it's over the Internet: You can't get the PC Name AFAIK (which is a good thing).
If it's on an internal Network, maybe a DNS Lookup would work, as outlined here?
You can simply add a rule and assign any field you like the value from this xpath: xdUser:get-UserName(). This returns the users login name.