#50487 [Opn->Bgs]: printer_set_option does not work

From: Date: Wed, 16 Dec 2009 08:25:06 +0000
Subject: #50487 [Opn->Bgs]: printer_set_option does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145778@lists.php.net to get a copy of this message
 ID:               50487
 Updated by:       jani@php.net
 Reported By:      imyhchou at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: WinXP
 PHP Version:      5.2.11
 New Comment:

Report bugs in PECL extensions at http://pecl.php.net/bugs/


Previous Comments:
------------------------------------------------------------------------

[2009-12-16 04:22:15] imyhchou at gmail dot com

Description:
------------
I cannot use printer_set_option() to specify the orientation of the
paper.

Reproduce code:
---------------
---
From manual page: function.printer-set-option#Parameters
---
<?php 
$ptr=printer_open("HP LaserJet 6P");
printer_start_doc($ptr);
printer_set_option($ptr,PRINTER_ORIENTATION,PRINTER_ORIENTATION_LANDSCAPE);
printer_start_page($ptr);
printer_write($ptr,"The letter is sidelong.");
printer_close($ptr); 
?>

Expected result:
----------------
I can specify the orientation of the paper to be sidelong.

Actual result:
--------------
It doesn't change.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50487&edit=1



Thread (2 messages)

« previous php.bugs (#145778) next »