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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailmerge word with foxpro and file.txt

Status
Not open for further replies.

immovfp

Programmer
Jun 18, 2002
6
FR
Hi,

I don't know to do a mailmerge word
programmatically with fox.

I want to use a file .txt, the most is an cursor fox
and start the mailmerge in a prg fox.

thanks

olivier
 
immovfp

Which part is giving you trouble? I see this as two issues. First you would most likely have to parse your textfile into a table. Second you would loop through the records and automate the mailmerge function in word.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Mike,

Can i do the mailmerge with a cursor fox, like as
select *,mavar as myfield1 from mytable into cursor mycursor

And i want open my document word with the mailmerge.


If isn't possible ,can i use a file delimited in txt.

thanks Olivier
 
The easiest way is to create a .DBF file with the desired structure, similar to the text file. Then, issue:

IMPORT FROM MyFile.TXT SDF

You can then use a query to select the desired records for your merge.
As for the mail merge, use the keyword search and look for 'mail merge'. There are numerous posts on that subject.


-Dave S.-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top