Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print word file in a report
Message
 
 
À
04/10/2011 22:07:44
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01525604
Message ID:
01525610
Vues:
29
>>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...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform