You can use the following methods to export data from a DataWindow object:
SaveAs
SaveAsFormattedText
SaveAs lets you save data in several different formats, including PDF, HTML, XML, and text. For more information about exporting data, see the DataWindow Designer User’s Guide.
SaveAsFormattedText saves the DataWindow’s content, including headers and computed fields, into a text file with customized formatting.