Board index » delphi » Mail Merge and Delphi 4

Mail Merge and Delphi 4

I am looking for an example to set up my main document for mailing labels
then I can execute the merge seemlessly to the users.  Currently I have the
following:

MergeDoc.MainDocumentType := wdMailingLabels;

    ob1 := Word.Options.ConfirmConversions;
    Word.Options.ConfirmConversions := false;
    MergeDoc.OpenDataSource('C:\InfoLink\mkreport\testdoc.abc',
0,false,true,false);

    MergeDoc.SuppressBlankLines := True;
?? Need help here to setup main document to merge ??
   MergeDoc.Execute

Thanks for you help
christine

 

Re:Mail Merge and Delphi 4


Quote
"Christine Moen" <cdm...@kfbs.com> wrote:
>I am looking for an example to set up my main document for mailing labels
>then I can execute the merge seemlessly to the users.  Currently I have the
>following:

>MergeDoc.MainDocumentType := wdMailingLabels;

>  ob1 := Word.Options.ConfirmConversions;
>  Word.Options.ConfirmConversions := false;
>  MergeDoc.OpenDataSource('C:\InfoLink\mkreport\testdoc.abc',
>    0,false,true,false);

>  MergeDoc.SuppressBlankLines := True;

> { Need help here to setup main document to merge ?? }
>   MergeDoc.Execute

Microsoft have a Word97 / Delphi MailMerge example in their
KnowledgeBase, article Q229310.  It may not be quite along the lines of
what you want.  BTW what do you want to do?  Is testdoc.abc the data
file which holds the information that you require?

--
Regards,
Chris Roberts

Re:Mail Merge and Delphi 4


Hello christine,

could I redirect you to my site www.chez.com/epedrazzi

You will find the TMailMerge component written by a friend.
The Tmailmerge component is freeware, full source and demo project included.

If you have any question or remarks, send me back a mail or write to
Herv ( herve...@chez.com )

Regards.
Eric Pedrazzi

Other Threads