|
Posted by ZeldorBlat on 01/12/06 20:06
rf wrote:
> Where does the printer_get_option($my_printer, PRINTER_PAPER_WIDTH) get
> the value from? I am trying to print to a Genicom 4490XT (a line
> printer) and the width is off. I try to set the width with
> printer_set_option( $my_printer,PRINTER_PAPER_WIDTH, 340); but it
> doesn't work. When I print with printer_write($my_printer,
> "1234567890...1234567890"') it only prints to about 215.
>
> Another problem I am having is that it is printing the first character
> or two at the end of the lines and in the front such as:
> 123456789 12
> 456789012 45
>
> And I have no idea what would be causing that.
>
> Any ideas?
>
> Thanks
>From <http://us3.php.net/manual/en/function.printer-set-option.php>
"PRINTER_PAPER_WIDTH: if PRINTER_PAPER_FORMAT is set to
PRINTER_FORMAT_CUSTOM, PRINTER_PAPER_WIDTH specifies a custom paper
width in mm, value must be an integer."
So, did you set PRINTER_PAPER_FORMAT to PRINTER_FORMAT_CUSTOM ?
Navigation:
[Reply to this message]
|