I am developing an application to produce printed reports from a MySQL database. This uses layout files to define what data to retrieve and how to format the output. The dat