×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / A question: In JSP page, how to send and control output to printer( such as printing a table)? Thanks in advance!
    • Do you want to print from the back-end (the application server) or just to enable the client to print from the delivered web page?
      • Dear Yukon, would you please give me some suggestion about both of them? Thanks a lot!
        • To print from the HTML page, please refer Jabber's response. I don't get you in printing from the back-end of a table. In fact you can do anything in your JSP's logic (including Printing). But I don't see the point printing from the back end.
        • If you're interested in JavaScript programming, please refer
        • Dear canada, come on in, please.
          I don't see any point in doing the following things: The user clicks a button in the browser and the back-end at the server site correspondingly print a page or a table. I understand the only reasonable thing is as follows: A page is composed of several frames. The user click a print button in frame A, and accordingly the contents of page B is printed out.
    • If you just print the page itself, you may use Javascript. The syntax seems to be "document.print()".
      However, if you just want to print a table, you need use frames---put your table into a frame.
      • Dear Jabber, I can't find document.print() in my reference book. would you please explain it in more detail. Thanks!
        • It should be window.print(). I just send you an email.
          • Thanks. I will study it this evening.
          • You are right!