Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to sent htnl from server to Ip printer?

Status
Not open for further replies.

Vadim

Programmer
Feb 5, 2002
75
US
Hi,
I need to print some labels from PocketPC. Window CE does not have printing capabilities, so I want generate html on my tomcat server and then somehow to sent it to network printer directly.
Is it possible?
 
Yes !
Take a look at the javax.printing package - there are some tutorials on the java.sun.com site.

--------------------------------------------------
Free Database Connection Pooling Software
 
I already did, but I understand that I should to create
some printable object, like applete and send to printer.
My question, if it is possible to change output content type of JSP to "application/postscript" or "application/pcl" and send it to printer by it IP address.
 
Yes, but you need to use the javax.printing package ... and it would only execute on the server. If you need to print from the client you need either some VB/VBScript/Javascript or something, or indeed an applet ...

--------------------------------------------------
Free Database Connection Pooling Software
 
You can't send data from the webserver to a printer on the clientside...

I wonder why it's so hard for some people to get rid of the idea that they can control the client computer (or in this case network) directly from a webserver...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top