asked on February 12, 2015 Show version history

Hi Team,

Could you please help me with this:

when i set the LaunchOptions with ServerName,RepositoryName,UserName and Password, the client.LaunchClient doesn't connect,

find bellow a example:

 using (LC.ClientManager lfclient = new LC.ClientManager())
	{
		// Check to see if there is already at least one visible open instance of the Client.
		if (!lfclient.IsClientOpen())
		{
			// If there is none, open the client and log in to the specified repository
			// with Windows authentication.
			LC.LaunchOptions options = new LC.LaunchOptions();
			options.ServerName = Conexion.getDBName();
			options.RepositoryName = Conexion.getRepositories();
			options.UserName = "user";
			options.Password = "password";
						
			LC.ClientInstance singleLFexe = lfclient.LaunchClient(options);
			// Since we create this new instance of the client and log in,
			// there is only one open window, the Folder Browser. Set the
			// current folder to the specified entry ID.
			IEnumerable<LC.ClientWindow> OpenWindows = singleLFexe.GetAllClientWindows();
			foreach (LC.MainWindow FolderBrowser in OpenWindows)
			{
				FolderBrowser.SetCurrentFolder(123456);
			}
		}
	}

Kind Regards

Mod edit: formatted code using the code style option

0 0