php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50487 printer_set_option does not work
Submitted: 2009-12-16 04:22 UTC Modified: 2009-12-16 08:25 UTC
From: imyhchou at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.11 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: imyhchou at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-16 04:22 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-16 08:25 UTC] jani@php.net
Report bugs in PECL extensions at http://pecl.php.net/bugs/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 01:01:29 2024 UTC