>actually the printline just works great, I just found out that it is my mistake, I have more than 40 characters in one row.
OK, so I assume 40 is the total width.
I don't know about your model, but in the standard Epson dot-matrix printers you can select between 10 CPI, 12 CPI, 15 CPI and 17 CPI; if your printer supports it, perhaps you may want to adjust the CPI (characters per inch) for some purposes.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)