Add NOCONSOLE. And you should also use a name expression instead of the & macro
type (lcFile) to printer noconsole prompt
Update! Noconsole is not supported for TYPE, but you can use SET ECHO OFF.
Update 2, a bad day today. This is how I do it:
lcPrinter=getprinter()
if !empty(lcPrinter)
set printer to (lcPrinter)
lcText=filetostr(lcFile)
???lcText
endif
>Hi.
>
>(VFP9 SP2)
>
>Today is not my day (I suppose)
>
>I would like to print a log file directly to the printer, no reportform, just 'dump' the file on paper.
>
>
>set device to printer
>type &lcFile to printer prompt
>set device to screen
>
>
>File get's nicely printed but also the screen which I dont want, I seem to have forgotten how to suppress this.
>
>Turned the helpfile inside out, looked everywhere. No luck.
>How to do this?
>
>Regards,
>
>Koen