摘要
在教务处证明件系统中,需要几种不同类型的特殊格式的报表文件,用Delphi开发特殊格式报表相对复杂的情况下,把不同类型的报表类型制作成模板保存到数据库中,然后把模板从数据库中读出,用Servers控件调用Word能够较好地实现Delphi对Word的控制。对于文档中动态变化的部分,可预先设置好书签,在Delphi中通过定位书签并查找数据库的方法更新Word文档,再打印不同类型的报表。
In the registry system, several different types of special format of the report files are needed. It is relatively complex to make special format report files in the Delphi. Different report files are created into template, are saved to the database,then templates are read out from in the database. Using Servers controller to call Word. Setting bookmarks and replacing can conduct the purpose of updating the dynamical parts of documents, then print different types of reports.
出处
《现代计算机》
2009年第1期142-145,共4页
Modern Computer