You can use the MS Word and MS Excel COM architecture within the applications for creating documents and spreadsheets. You can also use the aqFile methods for creating text files and CSV files of various formats.
For the Excel operations, you can read a bit more at
http://smartbear.com/support/viewarticle/20878/For anything involving working with MS Word and MS Excel, the architecture and methods available are documented at the
MSDN Library. Essentially, any object available in windows can be instantiated and operated using Sys.OleObject so, for MS Word, you can instantiate Sys.OleObject("Word.Application") and for Excel you can create Sys.OleObject("Excel.Application") and then operate within those objects/
For the aqFile methods and features, you can read documentation at
http://smartbear.com/support/viewarticle/12057/.