This sample describes how to export data from worksheets.