Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merging VFP data with MS Word
Message
 
To
20/10/1998 10:13:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00148469
Message ID:
00149260
Views:
20
>In my VFP 5.0a application I have a feature that exports the data to a FoxPro 2.x format so that the user can merge the data with MS Word. I have used the FOX2X file type since Word (especially earlier versions) does not recognize A VFP file. Some users can do the merge just fine but we are getting more and more users who do not have the dBase/FoxPro data access drivers on their system.
>
>Does anyone have any suggestions on what to do here? Is there a good and/or easy place to get the dBase/FoxPro data access drivers for these users?
>
>Many thanks in advance,
>
>Phyllis

Change the merge datasource to a Word document, then Using OLE automation, populate the Word document that is to be the data source with the field names (separated with a comma) and then the data, separated with a comma. (You'll need to separate the field names from the data with a CR, and then each 'record' will be separated with a CR.)

It's not hard to do and it allows Word to use something that it is familiar with for a data source.

Let me know if you'd like to see some code samples. (I am using this procedure in several applications)

HTH,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform