It’s a common feature in Management Information System that to export report to an Excel file. By analyzing the general structure of report, this paper shows an approach to export complicated report to an Excel file through Java Excel API based on a dynamic template.