首页 > 解决方案 > OleAutoObj 没有在我的电脑中打开 Excel 应用程序

问题描述

以下 dxl 代码未在我的 PC 中打开 excel 应用程序。我怀疑我运行的早期 dxl 脚本。它激活了 Excel Ole Objects 并打开了它们。如何关闭由早期 dxl 脚本打开的所有 excel 进程?任何帮助将不胜感激。

OleAutoObj objExcel = oleCreateAutoObject("Excel.Application")
if (objExcel != null){
bool excelVisible
oleGet(objExcel, "Visible", excelVisible)
if (excelVisible == false){
olePut(objExcel, "Visible", true)
}
}

-Ashok Anumula

标签: exceloleibm-doors

解决方案


有烫发oleCloseAutoObject( objExcel )


推荐阅读