I gave that a try and it still didn't work for me.  I noticed in the PHP 
documentation, one
individual wasn't able to use printer_write() in Win98.  Is it possible that the
printer_set_option() isn't working in Win98?

I've also tried re-arranging in other ways, and also simplifying the code so it's just 
the bare
minimum and it still has no effect on the printer settings.  I've also tried some of 
the other
printer_set_option "options"

Is there any way to debug what's going on?

--- "Frank M. Kromann" <[EMAIL PROTECTED]> wrote:
> If I remember correct you should use the printer_set_option() function before
> printer_start_doc() and printer_start_page()
> 
> If I'm wrong I'll have to check teh code :-)
> 
> - Frank
> 
> > Hi,
> > 
> > I've been working with the printer extension lately... for work, not for fun!  I'm 
>running PHP
> > 4.2.0, and Apache 1.3.24 on Windows 98.
> > 
> > I've been having problems exclusively with the printer_set_option function.  It 
>doesn't seem
> to
> > have any effect on the printers settings.
> > 
> > $handle = printer_open();
> > printer_start_doc($handle, "My Document");
> > printer_start_page($handle);
> > 
> > if ($labelSize == "mail") {
> >   printer_set_option($handle, PRINTER_PAPER_FORMAT, PRINTER_FORMAT_CUSTOM);
> >   printer_set_option($handle, PRINTER_PAPER_LENGTH, ????);
> >   printer_set_option($handle, PRINTER_PAPER_LENGTH, ???);
> > } elseif ($labelSize == "ship") {
> >   printer_set_option($handle, PRINTER_PAPER_FORMAT, PRINTER_FORMAT_CUSTOM);
> >   printer_set_option($handle, PRINTER_PAPER_LENGTH, ????);
> >   printer_set_option($handle, PRINTER_PAPER_LENGTH, ???);
> > }
> > 
> > // Print stuff here...
> > 
> > printer_end_page($handle);
> > printer_end_doc($handle);
> > printer_close($handle);
> > 
> > This is basically what I'm trying to do.  I know it get's into the if and elseif, 
>then it
> prints
> > using the settings that are set in the windows printer settings.
> > 
> > Any suggestions?
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> > http://health.yahoo.com
> > 
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> > 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to