Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


JSP Printing with proper formating

Posted on 2003-03-05
Medium Priority
Last Modified: 2010-04-01
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.
Question by:kaushikgmehta

Expert Comment

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

Accepted Solution

richiegr earned 150 total points
ID: 8078519

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


LVL 19

Expert Comment

ID: 8081674
you can't configure a clients printer settings unless you have an ActiveX control in an intranet environment.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 8086755
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?
LVL 19

Expert Comment

ID: 8088736
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?


Author Comment

ID: 8100501
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

Author Comment

ID: 8134227
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conducting a customer service survey used to be as straightforward as sending a template email out using checkboxes and numerical rating systems to measure satisfaction.
A Case Study of using the Windows API to provide RS232 communications capability in Access without the use of Active-X controls.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question