command line tool for print picture?

前端 未结 7 1388
终归单人心
终归单人心 2020-12-19 01:59

My program need to print a curve, my solution is changing the curve into a picture, and this picture file (xxx.png) can be printed by using the default windows picture print

7条回答
  •  眼角桃花
    2020-12-19 03:03

    rundll32 C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo "c:\mydir\my.bmp" "Fictional HP Printer"
    

    This prints an image file (.png in my case) to a specified printer WITHOUT a dialog box popping up. Also... works without elevated command prompt privileges.

提交回复
热议问题