Re: how to export the data from datatable to word pad
You can read data from a database via the ADO, BDE or ADODriver scripting object. Please see the "Working With Databases", "DDT.ADODriver" and "ADODriver Object" help topics for more information.
After you do this, you can save the obtained data to a text or RTF file.
To save the data to an RTF file, you need to launch MS Word via COM, create a new document and save it in the RTF format. The following script demonstrates how you can save text to an RTF file from a TestComplete script: