How do I get the Windows system username - InfoPath Dev
in

InfoPath Dev

How do I get the Windows system username

Last post 07-13-2005 02:06 AM by Patrick Halstead. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-11-2005 08:37 AM

    • yuvaraj
    • Not Ranked
    • Joined on 07-09-2005
    • India
    • Posts 3

    How do I get the Windows system username

    Hi

    I have created an Employee Report(EmployeeReport.XSN) using InfoPath tool. In preview mode or opening the xml template, I need to get the username of the system. To assign this value to, one of the fields called user-id in the Employee Report Form.

    Please help me on that, how to get the username(login-id) of the System by using InfoPath?.


    Thanks & Regards
    C.G.Yuvaraj


    Yuvaraj
  • 07-11-2005 06:24 PM In reply to

    Re: How do I get the Windows system username

    Hi Yuvaraj,
    There are numerous other posts detailing this. Search for Username and you will find them. Good luck!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 07-12-2005 07:29 AM In reply to

    • buzzby
    • Top 200 Contributor
    • Joined on 07-11-2005
    • United Kingdom
    • Posts 60

    Re: How do I get the Windows system username

    Hi

    I am having a similar problem and have read every thread on this site on on some others but i still cannot get a username.

    I have a text box called "name" and all i want is the Username in this box. Could someone please provide me with the code to do this as i am at a wall and have no idea how to continue.
  • 07-12-2005 12:13 PM In reply to

    Re: How do I get the Windows system username

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=263&SearchTerms=Current,user

    That gives you all of the information you need. It works great, but you have to have C# in order to get it to work.

    There is another solution on that same thread using an ActiveX component, but the hangup there is your document must be digitally signed in order for it to work.
  • 07-13-2005 02:06 AM In reply to

    Re: How do I get the Windows system username

    Or installed locally using the regform tool. Thanks Chiablo!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.