Would it be possible to create from within VFP a 'special' mailmerge (thanks to paper of Tamar).
Special: the mailing will not have details of just one record on each sheet but instead grouped data.
The answer doesn't really have anything to do with Word.
Just create a temporary table which incorporates the grouping (using SELECT ... GROUP BY ... INTO ...), and use that as the data source for the mailmerge.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
It seems I have not been clear enough.
Hereunder is the link to Tamar's paper I supposed to use as start-point. It describes, among very much other wearthful 'automation matters' how to use word's mailmerge wizzard from within VFP.
But as far as I know content of records of a datasource are transfered so that data of one record is transferred to a single sheet.
In my situation I want to group people, living at the same addres, and put their figures together on a single sheet.
I learned from Tamar to use a dedicated Word-template so my end-user might change kind of body-text in the mailing. Meanwhile I do the automation for the data-input from within fox. That's the reason I am considering to do th eoutput using automation and word.
Word can't handle a one-to-many relationship in mail merge. You'll have to find a way to flatten that out.
However, there is a type of mail merge called a "catalog," where you can put data from multiple records on a single page. You'd use it, for example, to create a phone directory. You might be able to do what you want with a loop that pulls data for one parent into a cursor and uses that for a mail merge.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.