Printing to a client printer from a web app

后端 未结 4 1215
走了就别回头了
走了就别回头了 2020-11-27 07:29

If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks pr

4条回答
  •  情歌与酒
    2020-11-27 08:32

    if you created an application that hosted the web browser control (rather than using a web browser directly) you could control the printing process much more directly.

    (assuming using Windows + IE is possible)

    here are some example articles that might help:

    Configure a WebBrowser Control

    Using the Web Browser Control in your C# Applications

    and the ever changing MSDN docs for the WebBrowser class, which has the Print method.

    From the print method remarks: "You can use this method to implement a Print button similar to the one in Internet Explorer. This method prints the current document without requiring further user input."

提交回复
热议问题