PHP How to print the page and determine whether the print success (printer), I use Window.print ()! But this function does not return a value

Source: Internet
Author: User
PHP How to print the page and determine if the print is successful (printer), I use Window.print ()! But this function does not return a value
Can't tell if the print is successful! I'm going to add a piece of data to the database after I've judged the print to be successful! The prawn guys helped ... What do I do if I print it in a different way? It's better to be simple, to implement this function ok!

------Solution--------------------
There is no print success that has to be judged by the naked eye, unless the hardware has to provide such an interface, otherwise it can only send a printed instruction.
------Solution--------------------
Also add Window.print () is the JS function. PHP is run on the server side unless you intend to print something on the server or be able to share the printer print.
------Solution--------------------
Explore

Reference:

There is no print success that has to be judged by the naked eye, unless the hardware has to provide such an interface, otherwise it can only send a printed instruction.

But I'm going to add a piece of data to the database after making sure the print is successful! How do I trigger this program? Determine if there is a click on the "Print" button? If you have clicked, but the printer there is a problem not print success, but the program is triggered, this is a little pay!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.