Printing

This is a discussion on Printing within the PHP Language forums, part of the PHP Programming Forums category; Is it possible to print to a printer using PHP. I was thinking of developing an application using PHP and ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-18-2004
mickeyg
 
Posts: n/a
Default Printing

Is it possible to print to a printer using PHP.
I was thinking of developing an application using PHP and printing reports
will be one of the requirements.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 10-18-2004
Tim Van Wassenhove
 
Posts: n/a
Default Re: Printing

In article <57Gcd.4700$B34.3987@trndny02>, mickeyg wrote:
> Is it possible to print to a printer using PHP.
> I was thinking of developing an application using PHP and printing reports
> will be one of the requirements.


Depends on the OS you are using, http://www.php.net/printer

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Reply With Quote
  #3 (permalink)  
Old 10-18-2004
Ed Jones
 
Posts: n/a
Default Re: Printing

mickeyg wrote:
> Is it possible to print to a printer using PHP.
> I was thinking of developing an application using PHP and printing reports
> will be one of the requirements.
>
> Thanks in advance

Have a look at http://www.fpdf.org as a possible option if you need to
accurately lay out your page, and printing from the browser isn't good
enough.

Basically, you create a PDF file which the user then prints. Recent
versions of Acrobat reader can execute javascript to open the print
dialog, too.

Ed
Reply With Quote
  #4 (permalink)  
Old 10-18-2004
Markus Ernst
 
Posts: n/a
Default Re: Printing

user wrote:
> On Mon, 18 Oct 2004 02:45:21 GMT, mickeyg <meshulamtemp@yahoo.com>
> wrote:
>
>> Is it possible to print to a printer using PHP.
>> I was thinking of developing an application using PHP and printing
>> reports will be one of the requirements.
>>
>> Thanks in advance

>
> I was looking for the same thing... ended up just going with
> javascript print() function.


Which is perfectly correct, as the printer is connected to the client, and
not to the server. Javascript is client side, PHP is server side.

--
Markus


Reply With Quote
  #5 (permalink)  
Old 10-19-2004
Sacs
 
Posts: n/a
Default Re: Printing

Ed Jones wrote:

> Have a look at http://www.fpdf.org as a possible option if you need to
> accurately lay out your page, and printing from the browser isn't good
> enough.
>
> Basically, you create a PDF file which the user then prints. Recent
> versions of Acrobat reader can execute javascript to open the print
> dialog, too.
>
> Ed


I just stumbled across FPDF a couple of weeks ago when needing to create
documents from php for an internal project.

Absolutely brilliant software! Takes a bit to get your head around, but
follow the examples, look at a few of the addon scripts and you're away.

I can see me using this in lots of places :-)

Sacs
Reply With Quote
  #6 (permalink)  
Old 10-19-2004
Markus Ernst
 
Posts: n/a
Default Re: Printing

Michael Vilain <vilain@spamcop.net wrote:
>
> My Javascript book says Internet Explorer doesn't support
> window.print. How do you get around this?


AFAIK it is only IE 5 on Macintosh that does not support window.print().
With IE 5 and 6 on PC I never encountered problems. I don't think the Mac IE
5 community is very large, as there are better products available for recent
Macs (Safari, Firefox), and the Mac OS 9 community is (what a pity!) still
quite stuck to Netscape 4.x.

--
Markus


Reply With Quote
  #7 (permalink)  
Old 10-19-2004
Markus Ernst
 
Posts: n/a
Default Re: Printing

Michael Vilain <vilain@spamcop.net wrote:

> On the Macintosh version of IE, window.print and print don't work.
> What version and OS are you using where they do?


Mac IE and Windows IE are totally different softwares, developed by
different teams, the only thing they have common is the name and the
company. The print function does not work on Mac IE, and it does on Win IE.

--
Markus


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0