DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006

    Exclamation print jsp webpage without footer and header

    For example I have an JSP page that draws up a report and display it to the user. If the user wishes to do so, he can click a "print" button which activates the printer dialog via javascript. This would be the same as if they selected "File > Print" from the browser menu.
    My problem is that at the top of the page, page numbers are added automatically, and at the bottom the URL of the page that was printed. Is there a way to get rid of this extra information, so that a "clean" document can be printed with only the results from the report.

    Any help would be appreciated,
    Last edited by melvinoyh; 04-25-2006 at 05:51 AM. Reason: to be more specific

  2. #2
    Join Date
    Oct 2004
    The only way I know of is to have the user download the report in a seperate file (perhaps excel) and have him print from that file.

    When you print directly from the web, you will always have the header and footer

Similar Threads

  1. printing w/o header footer
    By lorenzo ladelfa in forum Architecture and Design
    Replies: 0
    Last Post: 07-01-2002, 04:33 PM
  2. Static Table Header and Footer
    By K Deviprasad in forum Web
    Replies: 0
    Last Post: 05-11-2000, 07:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.