--- Caspar van Vroonhoven <[EMAIL PROTECTED]>
wrote:
Hi If I am uderstanding your question correct lets try
this code in a jsp page
<A href="javascript:window.print();">Print Report</A>
and see it print the page correctly as it shows the
print dialog box, now you can embed it easily in JSP
page

Bye
Umesh
> I'm sorry to say, but:
>
> 1) This has nothing to do with JSP...
> 2) You can't communicate with a printer on an HTML
> page (!) Image what would
> happen if you could.. (onLoad=print() or something..
> that would be
> horrible..)
>
> regards,
>
> Caspar van Vroonhoven
> www.tradingcars.com
> Amsterdam, the Netherlands
> -----Original Message-----
> From: umesh singh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 07, 2000 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: help for printing html page
>
>
> Hi
> You can use simple javascript to print the page as
> follows:
> javascript:window.print()
> I am using this code with a link naed Print but I am
> sure this will work with button click too..
> Hopefully this will solve the problem
> Bye
> Umesh
>
> --- nil <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> > This is what  I want.
> >
> > Pls. help me ASAP.
> >
> > Is it possible to map the toolbar printing button
> > function
> > with button Onclick event  in Browser?
> > B'cos I am opening a new window which does not
> > provide any toolbar or menu.
> > so for printing that form I am keeping one print
> > button on it, that will
> > serve the
> > purposeof priniting the document.
> >
> > this is what I want
> >
> > <input type = button onclick=print() value=print>
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to