Thanks all. I don't like answering my own
posts, but to save unnecessary effort your
replies were useful, in a round about way.
While looking in the Help file for something
I didn't understand I was reminded of the FMXUtils call
"ExecuteFile". So I included FmxUtils
in the Users clause and added a button and code and Hey Presto, all
done.
And yes, one must call Microsoft Office and
not MicrosoftOffice, though that didn't fix the problem as
described.
{------------------------------------------------------------------------------}
procedure TForm1.GoExcelBtnClick(Sender: TObject); begin ExecuteFile('Excel.exe','Sample.csv', 'C:\Microsoft Office\Office\',sw_show); end; {DbaseBtnClick} {==============================================================================}
I'll clean it up and check that it exists in the
nominated directory etc.
Thanks
Colin
|