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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top