计算机应用与软件
計算機應用與軟件
계산궤응용여연건
Computer Applications and Software
2015年
10期
120-122,150
,共4页
Qt%ActiveX%QAxWidget%QAxObject%WORD 生成
Qt%ActiveX%QAxWidget%QAxObject%WORD 生成
Qt%ActiveX%QAxWidget%QAxObject%WORD 생성
Qt%ActiveX%QAxWidget%QAxObject%Word generation
针对程序自动生成 Word 文档,提出一种基于 Qt 框架下的程序自动输出 Word 的方法。该方法使用 Microsoft 的 ActiveX技术,利用 Qt 提供的 ActiveQt 框架中 QAxContainer 模块的 QAxObject、QAxWidget 类调用 Word 的 COM组件,自动将获取的数据输出到 Word 模板中生成相关作战文书与文档,实验结果发现该方法有效解决了界面数据直接输出和多语言输出问题。根据某模拟训练系统中使用结果表明,该方法比其他 Word 生成方法能更好满足准确生成多语言文档的需求。
針對程序自動生成 Word 文檔,提齣一種基于 Qt 框架下的程序自動輸齣 Word 的方法。該方法使用 Microsoft 的 ActiveX技術,利用 Qt 提供的 ActiveQt 框架中 QAxContainer 模塊的 QAxObject、QAxWidget 類調用 Word 的 COM組件,自動將穫取的數據輸齣到 Word 模闆中生成相關作戰文書與文檔,實驗結果髮現該方法有效解決瞭界麵數據直接輸齣和多語言輸齣問題。根據某模擬訓練繫統中使用結果錶明,該方法比其他 Word 生成方法能更好滿足準確生成多語言文檔的需求。
침대정서자동생성 Word 문당,제출일충기우 Qt 광가하적정서자동수출 Word 적방법。해방법사용 Microsoft 적 ActiveX기술,이용 Qt 제공적 ActiveQt 광가중 QAxContainer 모괴적 QAxObject、QAxWidget 류조용 Word 적 COM조건,자동장획취적수거수출도 Word 모판중생성상관작전문서여문당,실험결과발현해방법유효해결료계면수거직접수출화다어언수출문제。근거모모의훈련계통중사용결과표명,해방법비기타 Word 생성방법능경호만족준학생성다어언문당적수구。
For automatic Word documents generation in the program we proposed a Qt framework-based automatic output method of Word documents in program.This method applies ActiveX technology of Microsoft,uses the classes of QAxObject and QAxWidget,which belong to the QAxContainer module in ActiveQt framework provided by Qt,to invoke COM component of Word,and automatically writes the obtained data to WORD templates and generates the correlated fighting operation documents and archives.Experimental results found that the method effectively solved the problems of direct interface data output and multi-language output.According to the utilisation results in certain simulative training system,the method can better meet the needs of accurate multi-language document generation than other Word generation method.