Qt框架下的WORD文档生成方法  被引量:4

WORD DOCUMENTS GENERATION METHOD BASED ON Qt FRAMEWORK

在线阅读下载全文

作  者:张艳伟[1] 董晓璋[1] 李长军[1] 

机构地区:[1]中国电子科技集团公司第二十八研究所,江苏南京210007

出  处:《计算机应用与软件》2015年第10期120-122,150,共4页Computer Applications and Software

摘  要:针对程序自动生成Word文档,提出一种基于Qt框架下的程序自动输出Word的方法。该方法使用Microsoft的Active X技术,利用Qt提供的Active Qt框架中QAx Container模块的QAx Object、QAx Widget类调用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.

关 键 词:QT ACTIVEX QAxWidget QAxObject WORD 生成 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象