• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing to Printer from JSP  RSS feed

 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
I want to know that,
how can we do the printing from JSP with following requirement:

Our application maintains n number of data(e.g 50 pages),we to take the printout of those 50 pages on single click,but the data will not be displayed on JSP,only the description of data and Print will be displayed.
The user will click on Print button,and it should do the needful.

One more thing:Will Jasper reporting plays any role in the this?

I tried with javascript's print function,but it prints entire screen.with menu header and buttons.

Please revert.


Thank you.

Regards
Baseet Ahmed

There is a substitute for Papers,but none for Trees.Save Trees.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to do printing on the client machine - the one that is running the Web browser?

If so, it's not a Java question and you likely won't get an answer in this forum. It's an HTML/JavaScript question. Hopefully, you are aware that, despite the similar names, Java and JavaScript are totally different.
 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know both are different.

I want to know the printing using Jasper if possible.

Thank you

regards
Baseet Ahmed
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You still haven't answered the question. Where do you expect the printing to occur - the client machine, or the server?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!