User.Name

This property returns/sets the user name.

Syntax Parameters Return Value
- - String

C# Example

Generating an Enterprise users report:

#r STATISTICA.SWLSpcExtension.Interop.dll;
// for external DLLs, use the #r followed by the DLL name, must be at beginning

// still need to add this, or make a call like SWLSpcExtension.ObjectManagerClass()
using SWLSpcExtension;

//Note: this example should be within a workspace C# node.

// if input is connected, the first input spreadsheet is:
// var iss = InputContainer[0].DataSource;
var oss = Application.Spreadsheets.New();

var om = new ObjectManagerClass();
om.Reconnect(Application);

int count = om.Users.Count;
oss.SetSize(count, 3);

oss.VariableName[1] = "Full Name";
oss.VariableName[2] = "Name";
oss.VariableName[3] = "Email";

oss.Header = string.Format("Users count: {0}", count);
Console.WriteLine("Users count: {0}", count);

int caseno = 1;
foreach (User user in om.Users)
{
    oss.Value[caseno, 1] = user.FullName;
    oss.Value[caseno, 2] = user.Name;
    oss.Value[caseno, 3] = user.EmailAddress;

if (string.IsNullOrEmpty(user.FullName)) Console.WriteLine("Name: {0}", user.Name);

 ++caseno;
}

oss.EntireRange.AutoFit();

// output is captured to a report document
// an output spreadsheet can be returned
// ... by assigning to DownstreamDocument
DownstreamDocument = oss;

// or by mentioning it on the last line
oss /// note no ;s