>>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