www.webdeveloper.com
Results 1 to 2 of 2

Thread: click a button and print

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    15

    Question click a button and print

    I there any waywith PHP to send a page or a specific content to printer with click of a button?
    Thanks in advance

  2. #2
    Join Date
    Feb 2013
    Location
    London, United Kingdom
    Posts
    4
    Im not aware of any php function for that since PHP is server side.. Interesting question!

    This would enable print from HTML button
    <input type="button" onClick="window.print()" value="Print The Report"/>

    I did find a PECL library that is Windows only (!)
    http://pecl.php.net/package/printer
    and
    http://www.php.net/manual/en/book.printer.php

    Good luck!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles