Re: printer_start_doc

From: Date: Sat, 25 Aug 2001 10:11:56 +0000
Subject: Re: printer_start_doc
Groups: php.windows 
Request: Send a blank email to php-windows+get-9056@lists.php.net to get a copy of this message
At 15:08 24.08.2001 -0400, Rob Cox wrote:
Updated to 4.0.7rc1 and it still didn't work. Here's my snippet: $handle = printer_open("\\\kinkos\\kinkos"); printer_start_doc($handle, "Project Status"); printer_start_page($handle); printer_write($handle, "any text"); printer_end_page($handle); printer_end_doc($handle); printer_close($handle);
i'm unable to reproduce this locally, i'll try to figure that out in a network later. which OS is the server/client running. btw: don't use printer_write. it's for sending raw printer data, you'll have to do something like $handle = printer_open(); printer_set_option($handle, PRINTER_MODE, "TEXT"); printer_write($handle, "Text to print"); printer_close($handle); better see http://php.net/manual/en/function.printer-draw-text.php daniel p.s.: you can also contact me privately
"Rob Cox" <RobC@icomxpresss.com> wrote in message news:20010824201521.69108.qmail@pb1.pair.com... I will give it a try. Thanks. "Daniel Beulshausen" <daniel@php4win.de> wrote in message news:5.1.0.14.2.20010824203232.00b8ec48@pop.puretec.de...
At 14:20 24.08.2001 -0400, Rob Cox wrote:
I've made sure that the printer is available to IUSR_ALPHA (my server).
The
printer is actually open to everyone but I made sure that IUSR_ALPHA
was
specified too. Nothing. Still get the same error.
please try http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip there have been some fixes to the extension since 4.0.6. if that still doesn't work please provide some reproducing code. sounds like printer_start_doc() is failing (permission problem, no
device
context created/failed,...). daniel
"Erik H. Mathy" <erik@butlerandco.com> wrote in message news:005101c12cc2$fb03c390$1300020a@erik_laptop...
Yes I believe that I a m running under the IUSR_ComputerName
account.
I'll
have to verify permissions.
Do that. If it's a printer being shared over the network, it's
subject to
either the domain permissions or the permissions specific to the box
doing
the sharing (or both, actually). Wow. That was a long-ass runon
sentence!
I've just noticed that the handle that is being returned is
showing as
'Resource id #1'. I have no idea about that but it makes sense
that if
I
don't have a proper handle, I won't be able to create a doc.
That's because you're running PHP4. It ID's things like connections, etc...as Resource #(whathaveyou). It's an interesting way to keep
track of
how many major resources you have in a script. ;)
I would like to thank you Erik. You pushed me in the right direction to get to here.
Bah, piffle, tain't no thing. It's nothing you wouldn't have come up
with,
I'm sure. Besides...it's good karma. You get some, you pass it on! - Erik
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail:
php-list-admin@lists.php.net
/*-- daniel beulshausen - daniel@php4win.de using php on windows? http://www.php4win.de
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
/*-- daniel beulshausen daniel@php4win.com - dbeu@php.net using php on windows? http://www.php4win.com

« previous php.windows (#9056) next »