How to export contract information to Excel