Hi Gurus,
I tried to dump the content in DBGrid or SQLQuery to excel.
After searched on the forum I found in some posts there mentioned
if SaveDialog1.Execute then
with CSVExporter1.Create(nil) do begin
//Dataset:= BufDataSet1;
Dataset:= SQLQueryWords.DataBase.DataSets[0];
FileName:= SaveDialog1.FileName;
Execute;
Free;
end;
However, when coming to "with CSVExporter1.Create(nil) do begin", here is one fatal error: Access violation reading from address $000...
Could you please kindly advise?
Thank you.