Infopath ONLY form and machine name

S

Stripe-man

I have seen the subject of grabbing the machine name and username time
and time again.. but all posts point to browser enabled forms. it
was great they added grabbing the username so easily with that simple
function.. but can someone please tell me how to get the machine name
to be pulled in automatically into a field in an infopath only form
(with no brower compatibility?

I would greatly appreciate it!
 
S

Stripe-man

I have seen the subject of grabbing the machine name and username time
and time again.. but all posts point to browser enabled forms.   it
was great they added grabbing the username so easily with that simple
function.. but can someone please tell me how to get the machine name
to be pulled in automatically into a field in an infopath only form
(with no brower compatibility?

I would greatly appreciate it!

Still hoping for a solution! tks much!
 
E

Ed Thurber

you can use
System.Environment.MachineName.ToString()

to return the machine name (in code). but you need to set the Trust to Full
in the form options.



Ed

I have seen the subject of grabbing the machine name and username time
and time again.. but all posts point to browser enabled forms. it
was great they added grabbing the username so easily with that simple
function.. but can someone please tell me how to get the machine name
to be pulled in automatically into a field in an infopath only form
(with no brower compatibility?

I would greatly appreciate it!

Still hoping for a solution! tks much!
 
Top