Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net Excel加载项不在法语Excel中工作_.net_Vb.net_Excel - Fatal编程技术网

.net Excel加载项不在法语Excel中工作

.net Excel加载项不在法语Excel中工作,.net,vb.net,excel,.net,Vb.net,Excel,我使用VB.NET和ExcelDNA为excel开发了一个外接程序。 外接程序可在我的计算机和所有具有英文版excel的计算机上运行。 但是,它在我客户的计算机(英语)上不起作用,这台计算机有一个法语版本的Excel 我得到以下错误: 旧格式或无效类型库HResult 0x80028018 我花了几个小时在互联网上,我发现的解决方案是你需要改变 文化信息。 我把这个添加到我的代码中似乎不起作用 Dim oldCI As System.Globalization.CultureIn

我使用VB.NET和ExcelDNA为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

嗯,我找到的唯一解决方案是将我的整个项目转换为.NET4.0,现在它运行良好