I'm assuming your talking about exporting data to the excel spreadsheet template. In that case, I know you can do it like this:
Create your Excel template with a query pointing to your database source. So, that way when your data form creates a new file off of the Excel template, the data gets pulled into the template automatically.
--
"If to err is human, then I must be some kind of human!" -Me