2014-12-03 3 views
0

Excel 파일을 만들고 네트워크 공유 드라이브에 저장 한 다음 해당 파일을 열면 응용 프로그램이 제대로 작동하지만 이상한 메시지가 표시됩니다. 파일을 열어Process.Start 명령을 실행하여 이상한 메시지가 발생했습니다.

using Excel = Microsoft.Office.Interop.Excel; 
.... 
xlsAppClass = new Excel.Application(); 
Process excelPID = GetExcelProcessId(xlsAppClass); 

// 
// All codes generate and save the excel file... 
// and return the filePath which is located in Network Shared drive. 
// 

xlsWorkBook.Close(); 
xlsAppClass.Quit(); 
Marshal.ReleaseComObject(xlsSheets); 
Marshal.ReleaseComObject(xlsWorksheet); 
Marshal.ReleaseComObject(xlsWorkBook); 
Marshal.ReleaseComObject(xlsAppClass); 
if (excelPID != null) excelPID.Kill(); 

// When program reaches this line of code excel file created, saved and Excel process killed 
// I checked the TaskManager, nothing's there. 

가 그럼 난이 순간 시스템에서 다음 코드

System.Diagnostics.Process.Start(filePath); 

를 통해 생성 된 파일을 열어 코드의 다음 부분을 고려하지만 나뿐만 아니라 다음과 같은 메시지가있는 I couldnt 알아낼 수 "Microsoft Office Communicator 2007 이미 실행 중"

+1

그리고 Windows 실행 대화 상자 나 명령 줄에 파일 경로 이름을 입력하면 Excel이 시작되고 파일을로드합니까? –

+0

@ 짐, 맞습니다. – user3375740

답변

0

실제로 내가 PC를 다시 시작하고 해결 된!

관련 문제