现在想实现功能是把多个(20+)的doc文档按顺序添加至输出文档的末尾,查阅官方文档Range.InsertFile 方法 (Word)后有完全符合需求的vb语句
ActiveDocument.Range.Collapse Direction:=wdCollapseEnd
ActiveDocument.Range.InsertFile FileName:="C:\TEST.DOC", Link:=True
但是在qt环境下我的代码
QAxObject *file= m_pWord ->querySubObject("Selection");
file->dynamicCall("Collapse(int)",1);
file->dynamicCall("InsertFile(const QString&)",sFile);
可以运行但是不能定位到文档末尾
初学,网上貌似没有查到,谢谢各位大佬。