Abstract:The problems and defects on report generation of current oil aided analysis software were analyzed, a processing algorithm that allows users to customize report format and add new reports dynamically was put forward. By means of abstracting the query statements used in the report to parameterized query statements, setting the congruent relationship of report cells and the query, the source type of cell data and so on, the generation of oil analysis report through relatively simple codes was realized. No matter whether the report is long or short, the codes are fixed, which improves the stability and flexibility of the system for the user.The system has been applied successfully in practical development projects and obtained satisfactory results.