If your server side function returns an ADO recordset then you can use that rs to copyinto excel.