can't set length/width of paper when printing
Posted: Thu Mar 18, 2004 9:55 am
Task
i have a couple of php scripts that need to print documents each with different paper formats.
Problem
I try setting the width and length manually with the following printer_set_option commands:
The changes seem to be applied when i verify with printer_get_option but when I print, the default settings are used...Anyone know how to correctly set the options?
Constraints
1- The formats are not standard
2- Tractor fed
3- They need to print on the same printer
4- Printer is old and discontinued -> Fujistu DL 3400
5- XP or Win 2000
i have a couple of php scripts that need to print documents each with different paper formats.
Problem
I try setting the width and length manually with the following printer_set_option commands:
Code: Select all
<?php
printer_set_option($handle,PRINTER_PAPER_FORMAT,PRINTER_FORMAT_CUSTOM);
printer_set_option($handle,PRINTER_PAPER_LENGTH,175);
printer_set_option($handle,PRINTER_PAPER_WIDTH,275);
?>Constraints
1- The formats are not standard
2- Tractor fed
3- They need to print on the same printer
4- Printer is old and discontinued -> Fujistu DL 3400
5- XP or Win 2000