UnhandledException: System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
안녕하세요 모든 사람과 연결되지 않습니다. 이 상자에 .csv 파일에 대한 파일 연결이 설정되어 있지 않기 때문에이 문제가 발생했다고 생각합니다.어떤 응용 프로그램</p> <p>내가 테스트하고 하나의 시스템에서 다음 예외를 얻고있다 .csv 파일을 열 수 Process.Start를 사용하려고 시도하는 경우에, 지정된 파일 예외
그럼 어떻게 이런 상황을 피하겠습니까?
강제로 Process.Start가 메모장에서 열리시겠습니까? - 이상적으로 Excel에서 열어야합니다. 그러나 Excel이 컴퓨터에 없으면 어떻게해야합니까?
감사
그것은 그것에 의존하지 않습니다 -하지만 사용자가 훨씬 더 쉽게 같은 CSV 파일을 읽을 수 있습니다. Excel이 설치되어 있는지 어떻게 확인할 수 있습니까? – baron
내 편집보기 .... – slugster
귀하의 의견은 완벽합니다. 건배 – baron