Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print word file in a report
Message
From
04/10/2011 22:32:36
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows 7
Miscellaneous
Thread ID:
01525604
Message ID:
01525615
Views:
30
>>>Would not it be easier to use Word instead of Report then?
>>
>>The report exists.
>>
>>It contains other items of information on the page.
>>
>>I might be reporting on a bunch of customers. My system is that I I have a Word file for each customer. e.g. Customer 'ABC01' has a file called 'ABC01.DOCX' and so on. So when I print the report, my idea would be to put retrieveword(custno) in the field instead of custmemo in the field. I would then have a function that would say:
>>
>>
>>function retrieveword(tcCustno)
>>
>>lcFileName = tcCustno + .DOCX'
>>open the lcFileName word file
>>retparm = entire contents of the file, with wordwrap suitable for the report field
>>return retparm
>>
>>
>>Yossi
>
>I think even if the report exist, creating a new word mail merge may work better and easier to implement. I'm not sure how to 'embed' Word. You may save rtf version of the word document and use RichText control in the report and show it this way...

OK. Question: Can a word file be saved to a variable via Word automation?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform