From 20ffcfb5507daf34f81346ca3dfa4c031e7b2fe3 Mon Sep 17 00:00:00 2001 From: wumu <mayi@mayi.com> Date: 星期日, 27 四月 2025 22:13:53 +0800 Subject: [PATCH] 0427 --- internal_system_v1/exporttofile.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_system_v1/exporttofile.cpp b/internal_system_v1/exporttofile.cpp index 252144e..366e933 100644 --- a/internal_system_v1/exporttofile.cpp +++ b/internal_system_v1/exporttofile.cpp @@ -381,8 +381,7 @@ if(savePath.size() > 0){ QAxObject excel("ket.Application"); - if(!excel.setControl("ket" - ".Application")){ // windows鍐呮牳 + if(!excel.setControl("ket.Application")){ // windows鍐呮牳 excel.setControl("Excel.Application"); // wps鍐呮牳 } @@ -390,6 +389,7 @@ excel.setProperty("DisplayAlerts",false); QAxObject * wbs = excel.querySubObject("WorkBooks"); qDebug()<<"wbs:"<<wbs->className(); + //QAxObject * wb = wbs->querySubObject("Open(QString&)",demoPath); QAxObject * wb = wbs->querySubObject("Open(QString&)",demoPath); qDebug()<<"wb open ok"; QAxObject * shs = wb->querySubObject("WorkSheets"); // WorkSheets 涔熷彲浠� -- Gitblit v1.8.0