JSP Printing with proper formating

How will i be able to print a JSP page(rather a report generated using JSP in HTML) with proper formating? I tried to print using the browser print option but it does not print in proper format. it adds on the page nos and also the browser title, etc. I am using JSP, html, javascript, MySql, Apache Web Server.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Simply you can't! Your only option is to use the browser print!

You can configure into the browser options is you want something in Header and footer on you printed page

in IE go to : File|Page Setup then init header and footer value to blank and the print will be only the document inside the browser



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
you can't configure a clients printer settings unless you have an ActiveX control in an intranet environment.

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Hi all, I am facing the same problem like kaushikgmehta do. Everytime when my user want to print something from the browser, the last few line of data sure will out of format.

I understand that the most difficult of taugh things in Web-based system is Client-Side printing. BUt is it impossible to do so?

I did try some sort like generating a .pdf files to the client is that end-user want to print something from their workstation...

But.......... fails... fail to adapot that API.

Any ideas?
PDF or Images are the best way to format documents for printing on the web.

HTML is a hit or miss.

What do you mean by fails to adopt that api?

kaushikgmehtaAuthor Commented:
How do i that cheekycj ? How do i use JSP and send a PDF to the client or how do i create an image using JSP beacuse mine is a report which can lets say some times even go for 100 or 200 pages ?(lets say my client wants to print 10000 records. Anyway thnx. Please help
kaushikgmehtaAuthor Commented:
None of u have an idea abt how to convert a JSP report(html report) to PDF and then the client using it to print in proper formatting? I think rishie gave me some clue so points to him
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.