javascript - How to print directly in a HTML page using PHP? -


i'm developing billing software. can print receipt again click print button in print page printing

for ex:

  1. i'm clicking print button in html page,

  2. next automatically open google chrome print window.

  3. and again click print button,

now printing, want print directly. how remove 2nd , 3rd step via programmatic.

how rectify problem help.

<script type="text/javascript">     function printpage()     {         window.print();     } </script> 

i'm using above code output redirected google chrome print page.

and again click print button printing,

  1. i want print directly
  2. for example click print button in html page means automatically printing.
  3. cannot ask inputs.
  4. and cannot display other dialog boxes.

anyone me please.

explaining

  1. am click print button in html page: yes have click on print button request browser perform action
  2. next automatically open google chrome print window: of course, opened printer/page settings asked in ms word same thing happens while printing asks preferred printer & page
  3. and again click print button: asked submit confirmation

understand whole process & please being on don't make wish


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -