代码改变世界

推荐排行榜

C#判断不同版本的Excel

2011-11-02 01:47 by 李泱, 6443 阅读, 收藏,
摘要: 1、判断是否安装的是Excel2000: RegistryKey regk = Registry.LocalMachine; RegistryKey akey = regk .OpenSubKey(@"SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\"); //检查本机是否安装Office2000 if (akey != null) { string file00 = akey .GetValue("Path... 阅读全文