CSV Export

Is there any way to export the column headings with the data .


I am exporting sales invoices and the data is accurate , the data is rejected when imported into sage account because there are no column headings.

Is there a way to do this ?

Eg

accountnumber ,transactiondate,invoicenumber , amount
A103,15/12/2012,2014001,212.22

You can control this with properties:

Grid.SaveFixedCells: Boolean;
Grid.SaveFixedRows: Boolean;
Grid.SaveFixedCols: Boolean;

Please see the PDF developers guide in the Import/Export chapter that explains this.

Thank you .


How do I set a fixed row ?

AdvStringGrid1.FixedRows := 1;   

thank you again , that is exactly what I needed .


Sometimes it is the simple things that are hard to find