Gene
If CSV is acceptable to you, you may try the CSVProcessor class at VFPX.
m.CSV = CREATEOBJECT("CSVProcessor") m.CSV.Export("output.csv")
Whatever memo fields are on your table, they will be exported, as well.
You may also consider using one of the XLSX classes available at VFPX.
On Wed, Oct 30, 2019 at 1:58 PM Gene Wirchenko gene@shaw.ca wrote:
Hello:
I am having to do a bunch of data export so have had a closerlook at the commands.
- I am wondering if there is a difference between
<vfp> COPY TO ... TYPE ... </vfp> and <vfp> EXPORT TO ... TYPE ... </vfp> where the type is XLS or XL5.
- I know that memo columns are not exported so for tables with
them, I am creating a cursor with the memo columns replaced with C(254) columns. In a few cases, this will result in data being clipped. Short of programming my exports to use Office Automation, is there a way around this? (I mean that is not a kludge. For example, I could create multiple columns each with a piece of the memo, but that would be horribly ugly.)
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]