C#获取本机使用的Excel的版本号

Microsoft.Office.Interop.Excel.Application EXCEL_APP = new Microsoft.Office.Interop.Excel.Application();

string version = EXCEL_APP.Version;
int version_i = Convert.ToInt32(float.Parse(version));

office 2003 version_i 为 11

猜你喜欢

转载自huzhenyu.iteye.com/blog/1701714