qt activex操作excel,该怎么解决
1个回答
展开全部
QAxObject *excel = new QAxObject( "Excel.Application", 0 );
QAxObject * workbooks = excel->querySubObject("WorkBooks");
workbooks->dynamicCall("Open (const QString&)", fileName);
QAxObject * workbook = excel->querySubObject("ActiveWorkBook");
QAxObject * worksheets = workbook->querySubObject("WorkSheets");
执行到最后一句时出现
QAxObject * workbooks = excel->querySubObject("WorkBooks");
workbooks->dynamicCall("Open (const QString&)", fileName);
QAxObject * workbook = excel->querySubObject("ActiveWorkBook");
QAxObject * worksheets = workbook->querySubObject("WorkSheets");
执行到最后一句时出现
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询