in reply to Excel generation

The project involves a Microsoft SQL Database and a perl cgi interface, on a Win XP machine, running the apache webserver. I learned about avaliable GUI's for perl, (Tk etc) as this is a system run on a single machine, but did not have the time to learn (Is it worth learning for applications?). I am reading values from the database and now I am wanting to print this information. I looked at Javascripts but found they added unwanted text to my printed page. This is why Win::OLE plus it adds the ability to save this information as an xls document. I have read information that apache does not let external programs run, and this is why my scripts only run when ran from a command prompt. Thankyou for the code to embeed excel into my application. Just now want to be able to allow printing from this page (Ctrl + P) and save.