UtilOutputReport function

Generate a text formatted report file or an Excel file