Marc,
That code should directly work in VFP. Although you should also SET TEXTMERGE TO after you turn it off. There is no need to fclose(). VFP also has a NOSHOW clause instead of having to SET CONSOLE OFF.
>Could you tell me how I can generate and parameter (select fonts...) a report through program commands .
>
>In FOXPRO 2.5, following code had been used :
> set console off
> set textmerge on to lcmyfile
> lcmyline = ....
> \<<lcmyline>>
> set textmerge off
> fclose(_TEXT)
> type &lcmyfile to printer
> set console on
>
>How can I do in VFP ?