Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a Word doc to selected names on dbf
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01621082
Message ID:
01621083
Vues:
55
>I get the word doc I want
>
>I extract the contents to a variable
>
>I print a report using names from a dbf and the variable created above - except that Filetostr doesn;t return the contents of a word doc - what should I do?
>
>
>filja=GETFILE()
>fred=FILETOSTR("&filja")
> 
>pcText = fred
>SELECT clients
>scan
>replace sel with 1 
>ENDSCAN
>GO top 
> 
>REPORT FORM clients.frx TO PRINTER FOR TRIM(clients.sel)=1
> 
>SET PRINTER off
>SET PRINTER to
>
First of all, don't use & when you don't have to. E.g.
lcFileName = getfile()
if not empty(lcFileName)
   lcFileContent = filetostr(lcFileName)
endif
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