Importing new lib

Hi there,

I’m trying to export data to Excel using an external lib, but I’m having some problems about the logic.
I need to import a new lib to the system, or a new Plugin? Which one is the most ‘correct way’ to go?