Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a Word doc to selected names on dbf
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621082
Message ID:
01621083
Views:
53
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform