>>Hi:
>>
>> I have many MS-WORD documents and in my VFP 5.0 application I have a field in the table when the WORD document's path it's stored.
>> How to print those documents using VFP 5.0 reports because the application prints a Header and other data from the tables and at the end of the report I need to print the WORD document.
>> Thanks for the help.
>
>Add a general field to your table (or create a separate table for this purpose), append your word documents to the general field using:
>
>Append General mytable.newgeneralfield From (mytable.documentpath) Class word.basic
>
>then in your VFP report add OLE bound control and attach it to mytable.newgeneralfield. Hope this helps.
Well this would absolutely work. But it would very slow. Instead inserting header and other data to an existing word document and printing via word is faster. For examples you may want to look at KB\FAQ\Win32api section and many threads about it before.
Cetin