hiya,
there's not that much you can do directly (i.e.: without some activeX
controls which the client has to accept and then only work on IE),
you can print a document in JavaScript with window.print();

Something like this would work if you wanted to print the document on
screen:
(in the body tag)
<body onLoad="window.print();">


HTH,
Dw

Sqlcoders.com Dynamic data driven web solutions
----- Original Message -----
From: "J. Wharton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: May 21 2002 12:13 PM
Subject: Re: [PHP] printer_open


> I wish they had noted this in the PHP manual. Does anyone know of a way to
> manipulate the client computer's printer orientation?
>
> ================================
> J. Wharton
>
> "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> 006101c20101$6c3ae7b0$2f7e3393@TB447CCO3">news:006101c20101$6c3ae7b0$2f7e3393@TB447CCO3...
> > Restart your web server when you make changes to php.ini.
> >
> > Also, note that these functions are for the printer on the server, i.e.
> > where the code is running.
> >
> > ---John Holmes...
> >
> > ----- Original Message -----
> > From: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]>
> > To: "php general" <[EMAIL PROTECTED]>
> > Cc: "J. Wharton" <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 22, 2002 1:29 AM
> > Subject: Re: [PHP] printer_open
> >
> >
> > > Hiya!,
> > > Have you tried adding this line in the very top of your script (just
> > inside
> > > the opening <? ):
> > > DL("php_printer.dll");
> > >
> > > (this call to load a dynamic extension must occur before any printer_
> > > related functions, if it works at all)
> > >
> > > Usually that works for me, if it doesn't work for you then check that
> you
> > > have the php_printer dll and that it's in the appropriate directory.
> > >
> > > HTH,
> > > Dw
> > >
> > > Sqlcoders.com Dynamic data driven web solutions
> > > ----- Original Message -----
> > > From: "J. Wharton" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: May 21 2002 11:19 AM
> > > Subject: [PHP] printer_open
> > >
> > >
> > > > I'm attempting to use the printer_open function in php, and am
getting
> > the
> > > > following error:
> > > >
> > > > Fatal error: Call to undefined function: printer_open() in
c:\program
> > > > files\apache group\apache\htdocs\new\aview.php on line 209
> > > >
> > > > I've tried commenting and uncommenting the extension=php_printer.dll
> > > > line in php.ini with no results.
> > > >
> > > > Help!
> > > >
> > > > J. Wharton
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to