print command to printer of specific image from the page ????

Discussion in 'PHP' started by dineshsingh1984, Oct 19, 2014.

  1. #1
    my page is like this :

    title _image ______download _print
    test image(abc.png) download print
    php5 image(xyz.png) download print

    here print is a print command to printer for a specific image with the fix size 100px-100px......
    plz help me how can do this?????????
     
    dineshsingh1984, Oct 19, 2014 IP
  2. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #2
    You could open the new image in a window and then call the print dialog.

    
    popup = window.open();
    popup.document.write("imagehtml");
    popup.print();
    
    Code (markup):
     
    Anveto, Oct 19, 2014 IP