-
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,
Thanks.
Last edited by melvinoyh; 04-25-2006 at 05:51 AM.
Reason: to be more specific
-
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
-
By lorenzo ladelfa in forum Architecture and Design
Replies: 0
Last Post: 07-01-2002, 04:33 PM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks