Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

How to use a printer never register in server and client sides in     java?

Thread view: 
xhy_China - 04 Dec 2007 09:33 GMT
How to use a printer never register in server and client sides in
java? It's a web application. I want to use it on server side.

Thx!
xhy_China - 05 Dec 2007 03:26 GMT
> How to use a printer never register in server and client sides in
> java? It's a web application. I want to use it on server side.
>
> Thx!

Why no response??
Can anyone give me some advice??
Gordon Beaton - 05 Dec 2007 07:12 GMT
>> How to use a printer never register in server and client sides in
>> java? It's a web application. I want to use it on server side.
[quoted text clipped - 3 lines]
> Why no response??
> Can anyone give me some advice??

Honestly, I don't think anyone understands what you are asking.

/gordon

--
Andrew Thompson - 05 Dec 2007 07:56 GMT
>>> How to use a printer never register in server and client sides in
>>> java? It's a web application. I want to use it on server side.
...
>> Why no response??
>> Can anyone give me some advice??
>
>Honestly, I don't think anyone understands what you are asking.

I am having trouble understanding.

To xhy_china, can you describe the series of actions
you would like to see happen for this answer?  
Something like....
- User visit company search web page.
- User select search parameters - click 'search'
- User decide on products - click 'buy'
- Report is printed on server side.

Signature

Andrew Thompson
http://www.physci.org/

xhy_China - 05 Dec 2007 11:19 GMT
> >>> How to use a printer never register in server and client sides in
> >>> java? It's a web application. I want to use it on server side.
[quoted text clipped - 18 lines]
>
> Message posted viahttp://www.javakb.com

First,I think I need to apologize for my poor English. Sorry!

My problem is:
I have a web application. If user presses print button on his browser,
server will print the paper with the printer that user specified
before in application. But the printer is not added on both server and
client machine, it only have an IP. So which classes can I use in Java
to implement this function and how?

Thx!
Lew - 05 Dec 2007 15:17 GMT
> My problem is:
> I have a web application. If user presses print button on his browser,
> server will print the paper with the printer that user specified
> before in application. But the printer is not added on both server and
> client machine, it only have an IP. So which classes can I use in Java
> to implement this function and how?

The server is not going to see printers on the client side.  Perhaps an
applet, appropriately signed (do you have to sign applets to print?), could
print, but I don't think it can tell the server about the printer.  Likewise
with a Java WebStart app.

Signature

Lew

xhy_China - 06 Dec 2007 03:13 GMT
> > My problem is:
> > I have a web application. If user presses print button on his browser,
[quoted text clipped - 10 lines]
> --
> Lew

The printer's IP was stored in DB. When user press print button,
application will
select printer according to userid form db to do printing job on
server side. So
the selected printer may not be added on server machine, but I want to
use this printer
by java program(in silent way). How can I implement this?
Thx!
RedGrittyBrick - 23 Dec 2007 14:05 GMT
>>> My problem is:
>>> I have a web application. If user presses print button on his browser,
[quoted text clipped - 16 lines]
> by java program(in silent way). How can I implement this?
> Thx!

The only way this could possibly make sense to me is if you have an
Intranet application used within a single corporation and the printers
are all of the same type, connected to the network in the same way.

For example if all the printers were HP LaserJet model P2xxx or 4xxx
connected using JetDirect then you could emit a subset of Postscript to
them, making a TCP connection to port 9100 at the printer's IP-address.

Either the server application would have to construct the Postscript
directly or use a Postscript driver whose output is known to work on all
the models of printer deployed. The driver might be set to print-to-file
so that you can read the output for onward transmission.

Of course you could probably do the same using another PDL such as PCL5
but I happen to like Postscript :-)

If the client is a web browser I'd look into using that to perform the
printing in a more "normal" way. DHTML, AJAX, applets, whatever.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.