>Dear Experts
>
>Is it possible to copy a DBF to word table?
>After applying commands
>Word document should automatically open with table
>Alongwith column lines.
>
There are a couple of ways to do this. The fastest is probably to copy the DBF to a CSV file and then open that file in Word and convert it to a table. Something like this (totally untested):
USE YourTable
COPY TO YourTable TYPE CSV
oWord = CREATEOBJECT("Word.Application")
oDoc = oWord.Documents.Open("YourTable.CSV")
oRange = oDoc.Range()
oRange.ConvertToTable(",")
oWord.Visible = .T.
Tamar