Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert report into MS Word
Message
 
 
To
20/08/2001 10:07:02
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00546195
Message ID:
00546208
Views:
13
>Did anybody try to save VFP 6.0 report as a MS Word document.
>An application I downloaded from UT has some bugs.
>Your help is appreciated.

Utilities that will convert a VFP report to a Word document will have some problems to overcome. The best way is to use OLE automation and just send your data directly from VFP to a Word document or template and not use the VFP report writer at all.

What I did was create placeholders [variables] in a Word document where VFP data needed to be inserted. I placed these variables between {} to make them distinguishable from actual Word text. I then call Word's Search and Replace utility from VFP to replace these variables with the appropriate data from VFP.

There are somewhat easy ways to create strings in VFP that can be sent to the Word document then converted to Word tables as well.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform