Abstract: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.