Does anyone have any examples of how to merge data from a foxpro table into
a Microsoft Word document?

RE: Word Automation by Leemi

Leemi
Mon Jan 23 12:37:38 CST 2006

Hi Andy:

Are you performing a mail merge?

155751 How To Create Form Letter Programmatically in Word with OLE
http://support.microsoft.com/default.aspx?scid=kb;EN-US;155751
175173 How to print a general field by using Word and Visual FoxPro 9.0 or
earlier versions
http://support.microsoft.com/default.aspx?scid=kb;EN-US;175173
250501 How to automate Word from Visual FoxPro and add a table to a document
http://support.microsoft.com/default.aspx?scid=kb;EN-US;250501
222101 How to find and use Office object model documentation
http://support.microsoft.com/default.aspx?scid=kb;EN-US;222101

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Does anyone have any examples of how to merge data from a foxpro table
into
>a Microsoft Word document?


RE: Word Automation by Ginny

Ginny
Thu Feb 16 10:48:05 CST 2006

Hi Lee,

I am interested in being able to do this from VFP 6 or above, but with an
EXISTING Word document, and all these articles you suggest have code to
'create' the document on-the-fly. Is there a way to do this automation but
using an existing word document that is already set up with merge fields, etc?

Thanks,

Ginny

"Lee Mitchell" wrote:

> Hi Andy:
>
> Are you performing a mail merge?
>
> 155751 How To Create Form Letter Programmatically in Word with OLE
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;155751
> 175173 How to print a general field by using Word and Visual FoxPro 9.0 or
> earlier versions
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;175173
> 250501 How to automate Word from Visual FoxPro and add a table to a document
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;250501
> 222101 How to find and use Office object model documentation
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;222101
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
> http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
> http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/gp/lifeselectindex
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
> >Does anyone have any examples of how to merge data from a foxpro table
> into
> >a Microsoft Word document?
>
>

Re: Word Automation by Wild

Wild
Sat Feb 18 15:48:07 CST 2006

You can create an instance of the word object and call the open method to
open an existing document. I allow my user to maintain a library of word
templates (.dot) files, and use the find and replace methods to replace
"data keys" (similar to mail merge fields) with predefined fields from my
database. Works great.

Wild Bill

"Ginny B" <Ginny B@discussions.microsoft.com> wrote in message
news:FCB557BE-9FEC-4A6E-9DED-F98379ACD470@microsoft.com...
> Hi Lee,
>
> I am interested in being able to do this from VFP 6 or above, but with an
> EXISTING Word document, and all these articles you suggest have code to
> 'create' the document on-the-fly. Is there a way to do this automation
but
> using an existing word document that is already set up with merge fields,
etc?
>
> Thanks,
>
> Ginny
>
> "Lee Mitchell" wrote:
>
> > Hi Andy:
> >
> > Are you performing a mail merge?
> >
> > 155751 How To Create Form Letter Programmatically in Word with OLE
> > http://support.microsoft.com/default.aspx?scid=kb;EN-US;155751
> > 175173 How to print a general field by using Word and Visual FoxPro 9.0
or
> > earlier versions
> > http://support.microsoft.com/default.aspx?scid=kb;EN-US;175173
> > 250501 How to automate Word from Visual FoxPro and add a table to a
document
> > http://support.microsoft.com/default.aspx?scid=kb;EN-US;250501
> > 222101 How to find and use Office object model documentation
> > http://support.microsoft.com/default.aspx?scid=kb;EN-US;222101
> >
> > I hope this helps.
> >
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> >
> > Sincerely,
> > Microsoft FoxPro Technical Support
> > Lee Mitchell
> >
> > *-- VFP9 HAS ARRIVED!! --*
> > Read about all the new features of VFP9 here:
> > http://msdn.microsoft.com/vfoxpro/
> >
> > *--Purchase VFP 9.0 here:
> >
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> > 69-4500-8bf2-3f06689f4ab3&type=ovr
> >
> > Keep an eye on the product lifecycle for Visual FoxPro here:
> > http://support.microsoft.com/gp/lifeselectindex
> > - VFP5 Mainstream Support retired June 30th, 2003
> > - VFP6 Mainstream Support retired Sept. 30th, 2003
> >
> > >Does anyone have any examples of how to merge data from a foxpro table
> > into
> > >a Microsoft Word document?
> >
> >