Link to home
Start Free TrialLog in
Avatar of kaushikgmehta
kaushikgmehta

asked on

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.
Avatar of thanassis
thanassis

Simply you can't! Your only option is to use the browser print!
ASKER CERTIFIED SOLUTION
Avatar of richiegr
richiegr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can't configure a clients printer settings unless you have an ActiveX control in an intranet environment.

CJ
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?

CJ
Avatar of kaushikgmehta

ASKER

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
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