• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

Printing + JSP

How could I create a print preview of a record which will be small in size?

I have a web application which has two print functions.  The function prints out two different records.  Right now, I have a simple print preview with a print button.  When a user goes to print the view, I notice that the size of the print was over 70 MB.  All I have on this page is a table with maybe ten get methods to retreive the data.  I am using jsp, beans, and servlets.  What is the best way to handle this?  Thanks all.  
0
OliviaRedhorse
Asked:
OliviaRedhorse
  • 2
  • 2
2 Solutions
 
TimYatesCommented:
>> How could I create a print preview of a record which will be small in size?

How are you doing the print preview now?

Is it just the standard print-preview in the browser?

How are you measuring the "size of the print"?
0
 
OliviaRedhorseAuthor Commented:
The print preview is just a jsp page with a get methods located in a table written in html and java.  I thought for some reason that this would be printer friendly.

No, it is not the standard print from browser.  I have created a jsp page which is the print preview and then I print the current page.

I am measuring the size of the print from looking at the printing informaiton on my computer.  In the printing que.

Thanks,
0
 
TimYatesCommented:
The size of the print job is down to the browser I guess...

It will depend on how much graphics you have, etc...

How big is google's page when you try printing that?

If you put a CSS stylesheet on your page with the media type set to "print" then you can use that to block out bits you don't want in the printout, and use the browser's print-preview  (as another option)

(http://erraticwisdom.com/2007/01/22/css-printing-guide is an example)

I wouldn't worry about the size of the print job though...

Tim
0
 
OliviaRedhorseAuthor Commented:
okay, thank you so much!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now