标签:
http://blog.csdn.net/zbc415766331/article/details/36396159
网上关于qt操作word的资料实在是太少了,搞了半天终于能在word 表格中插入标签的地方插入图片了。
CONFIG += qaxcontainer
http://blog.csdn.net/zbc415766331/article/details/36659993
HRESULT r;
r = CoInitialize(0);
// r =CoInitializeEx(0, COINIT_MULTITHREADED);
// m_word = new QAxWidget("Word.Application", widget, Qt::MSWindowsOwnDC );
m_word = new QAxObject("Word.Application" );
if( m_word == NULL ) return true;
//m_word->setProperty("Visible", false); //设置为隐藏
QAxObject * documents = m_word->querySubObject("Documents"); //获取所有工作的文档
http://www.qtcn.org/bbs/read-htm-tid-60802.html
Qt 向word中插入文字(使用QAxWidget和QAxObject)
标签:
原文地址:http://www.cnblogs.com/findumars/p/5346612.html