摘要
在Delphi中用Word作为报表输出工具可以进一步扩展应用程序的功能,便于用户对所生成的报表进行二次加工和重复使用。用Servers控件调用Word能够较好地实现Delphi对Word的控制。可以在Word中创建模板,在Delphi中运用该模板生成Word文档。对于文档中动态变化的部分,可预先设置好书签或关键字,在Delphi中通过定位书签或查找替换的方法更新Word文档。对于动态结构表格和多层次嵌套表格,可以通过巧妙地运用单元格的拆分与合并功能来创建。
In programs written with Delphi, Using Word as report outputting tool can expand function of application and be advantageous to asers to redial and reuse reports. Using Servers controller to call Word to create templates, which can create Word documents. Setting bookmarks or keywords previously and replacing them can conduct the purpose of updating the dynamical parts of documents. Dividing and merging cells can create dynamical structured form and multiple inheritances embedded forms.
出处
《计算机应用与软件》
CSCD
北大核心
2007年第3期180-183,共4页
Computer Applications and Software
作者简介
鲁保玉,副教授,主研领域:数据库应用系统。