in the export of data can be obtained from several sources including:
- datasource
- dbgrid
- listview
- stringgrid
- custom
but for export to other formats are similar, select the components appropriate to stay the desired format.
xls export to the data source
in this discussion I do not discuss how we create the database. here I use the virtual table.
Step by step :
create a new project
- components enter the virtual table can not have use the table and connect to the database you have created.
- pairs datasource
- pairs of components dbgrid
- pairs QExport4XLS from tab EMS Advanced Data Export
- pairs Button and change properties captions "Export"
- pairs savedialog from dialogs tab