Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vfp6 to Word : automate a table format.

Status
Not open for further replies.

dotnik

Programmer
Nov 14, 2003
24
IT
Good morning,
I have a problem to automate word document with Vfp procedure.
I have write program that find and replace the element in the document, for example:
1) <DATE> <TYPE> <COUNT>
2) Replacement istruction
3) 01-27-2004 ORDER 1000

I have a temporary cursor with more than 1 record,
How can I create a table format in a document, for example:
1) <DATE> <TYPE> <COUNT>
2) Replacement istruction
01/27/2004 ORDER 1000
01/26/2004 CONFIRM 1500
....
....
Best regards.
Nicola
 
dotnik

How about this:
Code:
oWord = CREATEOBJECT('word.Application')
oWord.Documents.Add()
oSelection = oWord.Selection
oSelection.Tables.Add(oSelection.Range,2,3)
oWord.Visible =.t.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top