针对当前信息系统(Information System, IS)中文档批量生成与报表技术繁琐复杂的问题,提出了一种基于Aspose技术的自定义模板文档生成方法。首先建立模板文档,划分常量域与变量域,对其通用格式进行自定义设置,然后重点借助Aspose组件调用模板文档并初始化,进而对其变量域进行实际数据填充,最后导出为目标格式的文档。通过多次应用实践,证明了该方法具有较高的鲁棒性与有效性。%Aiming at the problem that document generation in batch and report technology is overly burdensome and complex in current information system(IS), this paper proposes a document generation method based on aspose and custom template. First, the template document is built, the constant and variable domains of which are divided, and the custom settings for general format of which are completed. Then, the template document is called and initialized by means of aspose component. After actual data filling for the variable domains through aspose component, the document in target format is exported. Many application results show the high robustness and effectiveness of this mothed.
展开▼