Bug #8109 [Bgs]: Cannot print in LANDSCAPE using php_printer.dll
| From: | mangan at aptrut dot com | Date: | Tue, 04 Jul 2006 11:50:16 +0000 |
| Subject: | Bug #8109 [Bgs]: Cannot print in LANDSCAPE using php_printer.dll | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-5136@lists.php.net to get a copy of this message | ||
Edit report at http://pecl.php.net/bugs/bug.php?id=8109&edit=1
ID: 8109
User updated by: mangan at aptrut dot com
Reported By: mangan at aptrut dot com
Status: Bogus
Type: Bug
Package: Bug System
Operating System: Win XP
PHP Version: 5.1.2
New Comment:
Ok, sorry about that!
Just followed the Bugs link from http://pecl4win.php.net. I
will move
my report to bugs.php.net at once.
Cheers
Previous Comments:
------------------------------------------------------------------------
[2006-07-04 07:42:23] pierre dot php at gmail dot com
Can you please keep using bugs.php.net? Printer has no release in pecl
and it is not a bug system issue :)
------------------------------------------------------------------------
[2006-07-04 07:34:17] mangan at aptrut dot com
As suggested by tanes73 at hotmail dot com in bug thread 18412
http://bugs.php.net/bug.php?id=18412 it seems
like the set options is
not set correctly. But after looking at the source code for print.c I
think I found the code mentioned by tanes73 at line 583-590 but under
the case VALID_OPTIONS.
The problem now is how to call the printer_set_option with the option
VALID_OPTIONS?
Because the passed option parameter is parsed in the extension you
can't just call it with option = 16 (value for VALID_OPTIONS).
I can't find the call ever being made in the source code internally, so
there doesn't seem to be any automatic calling being done.
------------------------------------------------------------------------
[2006-07-04 02:18:48] mangan at aptrut dot com
Description:
------------
When trying to set PRINTER_OPTION for printing LANDSCAPE the actuall
setting doesn't seem to be affected.
I'm using the precompiled PHP version 5.1.2 on Windows XP.
Reproduce code:
---------------
printer_set_option($handle, PRINTER_ORIENTATION,
PRINTER_ORIENTATION_LANDSCAPE);
Expected result:
----------------
I expected the page to be printed in LANDSCAPE
Actual result:
--------------
The page prints in PORTRAIT
------------------------------------------------------------------------
--
Edit this bug report at http://pecl.php.net/bugs/bug.php?id=8109&edit=1