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!
-canada(canada);
2001-3-27
(#37695@0)
-
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?
-albxu(Yukon);
2001-3-27
(#37699@0)
-
Dear Yukon, would you please give me some suggestion about both of them? Thanks a lot!
-canada(canada);
2001-3-27
(#37705@0)
-
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.
-albxu(Yukon);
2001-3-27
(#37707@0)
-
If you're interested in JavaScript programming, please refer
-albxu(Yukon);
2001-3-27
(#37708@0)
-
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.
-jabber(jabber);
2001-3-28
{363}
(#37998@0)
-
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.
-jabber(jabber);
2001-3-27
{94}
(#37703@0)
-
Dear Jabber, I can't find document.print() in my reference book. would you please explain it in more detail. Thanks!
-canada(canada);
2001-3-27
(#37706@0)
-
It should be window.print(). I just send you an email.
-bloor(bloor);
2001-3-27
(#37719@0)
-
Thanks. I will study it this evening.
-canada(canada);
2001-3-27
(#37747@0)
-
You are right!
-jabber(jabber);
2001-3-27
(#37779@0)