Export data to Excel in C/AL dynamically

I can export data to excel in C/AL simply.But i want to select table and fields dynamically. For example; if i choice “Customer” table then choice “No.” and “Amount” fields.in this case,only selected two fields data should be export to Excel.How can i use pointer in C/AL. is this possible?

In 3.60 it is possible by RecordRef and FieldRef variables and functions related to them. Check the help [;)]

Thank you for your response.but our customer still using Navision Attain 3.1 version.if it not possible in 3.1, i will propose them to buy C/ODBC tool.

hi erkan. did you check the site www.mibuso.com there is something to choose the fields from any tables into excel… venax