>Hi Dragan:
>
>Thanks for the time you spend in explaining me.
>
>Now I've understood you. It reminds me the function FREADSTR() (at least in Clipper) and FSEEK() with the offset and the byte.
>
>Anyway it didn't work.
>
>The test line I want to print has 46 characters. Well. The code you suggested me prints 40 (the real wide of the paper) I must say I changed the code. Not 33 but 40. And the _mline variable after the first ??? is 46
Set memowidth to 33
mLine() respects that setting, and that is the length at which it will start looking (to the left) for the end of last word. The default is 50.
The difference between your line length and _mline after it is 6, a bit much. I'd expect 2 (a cr+lf), but maybe you had trailing spaces or an empty line in between, that would explain it.