Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing without print dialog in HTML5/Javascript on chrome

 
Mahesh Kedari
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've seen may posts on web saying it is not possible to send a data directly to printer from a web page without using print dialog.
I understand that there could be a security threat if such feature is provided in browser.
But I need this feature for my web application (Web based Point of Sale).

Is there any tip or trick using which I can print a specific content without showing print dialog?
I am thinking to develop a plugin for chrome which will allow this feature only for specified URLs.
So if some print request is coming from that specified URL, chrome should not display any print dialog and it should directly print the content on default printer.
Can somebody help me for that? Is there any plugin already available in market with such feature?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic