SAS ODS introduction
Use SAS to generate nice looking statistical report documents.
Excel (XLS) file
ods html file = "c:\temp\data.xls";
proc print data =new;run;
ods html close;
Web(HTML) file
ods html file = "body.html";
proc print data =new;run;
ods html close;
More at SAS ODS intro [PDF]