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 ?


accountnumber ,transactiondate,invoicenumber , amount

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