Php printer problem

Discussion in 'PHP' started by lazaroskyr, Oct 18, 2006.

  1. #1
    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?
     
    lazaroskyr, Oct 18, 2006 IP
  2. streety

    streety Peon

    Messages:
    321
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    streety, Oct 20, 2006 IP