在表单中获取当前用户,可采用this.Application.User.UserName
XPathNavigator navigatior = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:userName", this.NamespaceManager); navigatior.SetValue(this.Application.User.UserName);
UserName,无域名
LoginName, 有域名