kavieen |
2017-01-18 10:45 |
Qt5 导入图片到excel问题。。在线等,急。。。。
QString strImagePath = QDir::toNativeSeparators(bmpPath); QImage image(strImagePath); QAxObject * shapes = worksheet->querySubObject("Shapes"); shapes->dynamicCall("AddPicture( QString&, bool, bool, double, double, double, double",strImagePath,false,true,1,1, image.width(),image.height());请问大侠们,这样导入图片为什么会报错呢?查了查资料也没发现问题。。。。,在线等,急。。。。。 QAxBase: Error calling IDispatch member AddPicture: Exception thrown by server Code : 1004 Source : Description: Help : Connect to the exception(int,QString,QString,QString) signal to catch this exception |
|