Guide on creating a Java Applet , Printing without prompt

后端 未结 2 1870
小鲜肉
小鲜肉 2021-01-13 17:19

Well I have created a web-based POS to take order. My question is how do I create a Java-Applet;

  1. Shows the HTML page & a Print button
  2. Print Order
2条回答
  •  醉梦人生
    2021-01-13 17:38

    You cannot do that for security reasons. If you could, applets would already have become notorious for printing 10+ pages of 'special offers' when you visit unscrupulous web sites.

    OTOH, if the client is willing to accept one prompt at applet start-up, you could digitally sign the code.

提交回复
热议问题