export excel using hard code and not via module

Does Suite have a builtin function for generating excel files? Like how CodeIgniter already has it’s own excel library?

if so can you point me to the documentation for it or an example?

I need to generate reports that can’t be generated using the reports module so I’ll have to do this manually in code.