0
VB.NET 및 ExcelDNA를 사용하여 Excel 용 추가 기능을 개발했습니다. Add-In은 내 컴퓨터와 영어 버전의 Excel이 설치된 모든 컴퓨터에서 작동합니다. 그러나 프랑스 버전의 Excel이있는 내 클라이언트 컴퓨터 (영어로)에서는 작동하지 않습니다.엑셀 추가 기능이 프랑스어 Excel에서 작동하지 않습니다.
나는 다음과 같은 오류 얻을 :
이전 형식 또는 잘못된 형식 라이브러리 HRESULT를 0x80028018
나는 인터넷에서 시간을 보냈습니다 그리고 내가 찾은 해결책은 당신이 문화 정보를 변경해야했다 . 나는 작업에
Dim oldCI As System.Globalization.CultureInfo = _
System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCulture = _
New System.Globalization.CultureInfo("fr-FR")
System.Threading.Thread.CurrentThread.CurrentCulture = oldCI