On Wed, 5 Jan 2000, JBADRI wrote:
> Printer attached to the m/c running the browser client.
> Badri
Hence the problem has nothing to do with the server side, or the
servlet.
Anyway, few comments on the logic of your design:
1) Java was not meant to allow people take over someone else's computer
remotely (let alone to take over the entire ROOM like your design
suggests:-)
2) If you NEED to implement printing on the client OTHER than the print
button your best chance is a SIGNED Java applet (on a seperate frame, or
perhaps invisible, nobody said applets MUST have a user interface) that is
informed from the server when it should print.
3) If you want to print HTML as seen on a browser you need an HTML
renderer (the module inside your browser that decides how to show bold,
etc.). The only one I know comes from Sun as a Java bean, it is the one
that is/was inside HotJava and (alas) it costs money. If someone knows
otherwise pls. advise. Even then of course, WYSIWYG printing is out of the
question, for the user might have resized her browser (rendering of HTML
as you have noticed is container dependant)
4) In short, my advice is if you cannot change the logic (you always can)
drop the project!
Hope this helps,
Kostas
P.S. Of course, you can rely on your client running MSIE, whereby a medium
hacker can get it to print X-mas cards to a network printer two floors up
without the client ever knowing it:-)
>
> > JBADRI wrote:
> > >
> > > Hi,
> > >
> > > We have a servlet that generates a HTML output diplayed on
> > screen.
> > > We need a capability to print th output on screen in the same
> > format
> > > to a local printer without using the browsers PRINT option. What should
> > we
> > > do to implement this functionality?
> >
> > What do you mean by "local" printer ? The printer attached to the
> > machine
> > with the browser, or the printer attached to the machine with the
> > servlet
> > engine ?
> >
> > Martin
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > INET, a.s. Mgr. Martin Kuba
> > Kralovopolska 139 e-mail: [EMAIL PROTECTED]
> > 601 12 Brno WWW: http://www.inet.cz/~makub/
> > Czech Republic tel: +420-5-41242414/32
> > --------------------------------------------------------------------
> >
> > __________________________________________________________________________
> > _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html