How to force a website to print

前端 未结 5 1102
自闭症患者
自闭症患者 2021-01-20 21:02

This is going to sound like an odd request, but... I have a web application that is set up to collect data and store it into a database on regular intervals. The application

5条回答
  •  不思量自难忘°
    2021-01-20 21:40

    The print functionality is handled by the browser (and is thus unique per browser), it can be called (by javascript), but cannot be forced to print

    (here's the javascript to call the print method in the browser)

    
    

提交回复
热议问题