Create xlsx file using Custom Action

How to create an xlsx file using custom action?