public void AttachExcel(string pipeName) { // PipeName ends with process id _processID = int.Parse(pipeName.Substring(pipeName.LastIndexOf('\\') + 1)); _vsLinkClient = new VsLinkClient(pipeName); }