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:
01621087
Vues:
35
>>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
thanks
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform