How to print a image file in printer

前端 未结 3 740
傲寒
傲寒 2021-01-27 12:53

I write a simple program to print a image in JSF....

I have one image (sampleImage.png).. Already i connected my pc to printer....

Manually i open the image and

3条回答
  •  走了就别回头了
    2021-01-27 13:06

    You could send this to the browser

       window.print();
    

    It is up to the browser to decide what to do.

    To print specific portions of the page, consider a print stylesheet. Using the media attribute allows you to make a certain file print only styles.

    
    

提交回复
热议问题