程序打开excel文件报错

xiezuming 2003-07-29 01:24:13
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in generatekii.exe

Additional information: Old format or invalid type library.

在打开文件时报错,本来在一台机器上调试成功,换了台机器就不行了
以前的是win2k中文版的,后来的是英文版的,不知道和这个有没有关系?
大虾们有没有碰到过类似问题啊?
...全文
36 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiezuming 2003-08-03
  • 打赏
  • 举报
回复
解决了 :)


CAUSE
You receive this error calling an Excel method when the following are true:
You use early binding to call the method. -and-


The method requires an LCID (locale identifier). -and-


You run an English version of Excel 2002 but the regional settings for the computer are configured for a language other than English.
If the client computer runs the English version of Microsoft Excel 2002 and the locale for the current user is configured for a language other than English, Excel will try to locate the language pack for the configured language. If the language pack is not found, the error is reported.
xiezuming 2003-07-31
  • 打赏
  • 举报
回复
再换了一台可以用,难道要重装office?
atian25 2003-07-30
  • 打赏
  • 举报
回复
你再换一台看看
xiezuming 2003-07-29
  • 打赏
  • 举报
回复
两台机器都装的是office2000
atian25 2003-07-29
  • 打赏
  • 举报
回复
出错提示里面不是说了,Old format or invalid type library.
可能是office版本的问题

5,139

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 Office开发/ VBA
社区管理员
  • Office开发/ VBA社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧