2
來讀取單元格文本我用這個:
QAxObject *e = new QAxObject("Excel.Application");
QAxObject *wbooks = e->querySubObject("Workbooks");
QAxObject *wbook = wbooks->querySubObject("Open(const QString&)", "somefile.xls");
QAxObject *s = wbook->querySubObject("Worksheets(int)", 1);
QVariant v = s->querySubObject("Cells(int,int)", 2, 2)->property("Value");
// v = "sometext"
但如何從單元讀取超鏈接地址?
的Qt 5.0.1的Windows 7
謝謝!這工作。 – Nineduck 2013-04-24 13:44:02