Raza Saleem
Raza Saleem

Reputation: 185

how to disable windows print dialog?

I need to disable the print dialog for a POS app in exeoutput. direct print to defaut printer.

enter image description here

Is there any javascript library or software working with php. I have tried php_printer.dll but my printer in on network and it gives me error enter image description here

Upvotes: 1

Views: 3637

Answers (1)

Pattatharasu Nataraj
Pattatharasu Nataraj

Reputation: 248

Simply it is not possible, it's because of some reasons:

  • the user could want to choose a printer himself
  • the user could want to be able to control when his printer gets activated (imagine nasty auto-selfprinting advertisement popups)
  • the user could want to specify printer settings (grayscale or color, resolution, size, ...)

But it is not impossible here are few ways,

  • you could use Firefox to achieve this, where you could change the browser setting to enable what they called "Silent Printing", you should set it to "Always" and you'll be good.
  • In IE you can use VB script to achieve this.

Source : javascript print without print dialog box, Print a page on local using php (javascript) without Windows print dialog box,

Upvotes: 1

Related Questions