How to Export Records in a Grid Component to Excel or Ascii

Description

Records in a Grid Component can be exported to Excel or Ascii using built-in features of the Grid Component or Action Javascript.

Discussion

Records in a Grid Component can be exported to an Excel, Ascii, or Custom File format that can then be downloaded from the server to the user's machine. There are several features available for exporting Grid data to an Excel, Ascii, or Custom format.

The Grid Component has a property, "Excel to Export/Ascii" (shown in the image below), that can be used to add an Excel export button to the Grid Component's toolbar. This button will export the current records in the Grid Component to the specified file format (Excel or Ascii.)

images/exportExcel1.png

You can also use Action Javascript to export data in a Grid Component. The "Export to Excel or Ascii or Custom Format" Action Javascript action can be used to export the Grid Component data to an Excel, Ascii, or Custom file format. The "Export to Excel or Ascii or Custom Format" action has a number of options for customizing the export, including the ability to define an Xbasic function that can be used to write the data to a Custom File format.

images/exportExcel2.png

The videos below explain in detail how to export data from a Grid Component to an Excel, Ascii, or Custom file format using either the Grid Component property or Action Javascript:

The Export features described in these videos were first distributed as a feature pack for Alpha Five Version 10. They are automatically included in Alpha Anywhere.