I try to print from a php program to oki microline3321 dot matrix printer.But I cannot print at the entire page width.See at my code: printer_draw_text($handle,$var1,980,540); printer_draw_text($handle,$var2,1080,540); The first one is printed.The second one no.I tried setting the width with set_option function, but the printer seems to ignore this. How can I deal with that problem?Does anyone faced that?
That's quite a niche use for PHP. I'm not sure many, if any, people here will be fairly with that extension. Having said that I've taken a quick look at the manual page. Have you tried deleting your font and then re-creating it between the two printer_draw_text functions? There is no reason why it would be necessary but it might get you past whatever the problem is.