JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 23rd, 2004, 09:30 AM
gbaia gbaia is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 24 gbaia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Using window.print without printing header and footer

When I do a window.print, I get page number, page title at the top, and the url at the bottom.

I'd like to print without these... only the table which is in my window...

how can I do that?

I have used css to set up a print style, but, i still get the url and the title with page numbers when printing it.

Thank you so much!

Reply With Quote
  #2  
Old August 24th, 2004, 10:18 AM
Jackot29 Jackot29 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Paris, FRANCE
Posts: 29 Jackot29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 32 m 10 sec
Reputation Power: 0
Arrow redirection

That's just impossible in Javascript, I guess (according to the fact that it's a printer option... -outer from the browser-).

An old thread like this (March 26th, 2003 -t3042-) talked about ActiveX Control but, it seems to be avalaible only with IE 4.0 SP1 & upper.

Go to developer.irt.org/script/1437.htm and make experiences.

Reply With Quote
  #3  
Old June 2nd, 2005, 09:43 AM
bgernon bgernon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 bgernon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 25 sec
Reputation Power: 0
Why does your link not work?

Reply With Quote
  #4  
Old October 5th, 2005, 10:25 PM
schopra schopra is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 1 schopra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 12 sec
Reputation Power: 0
Using window.print without printing header and footer

Simplest way to do this is by removing Header and Footer in IE's File -> Page Setup dialog box

Reply With Quote
  #5  
Old October 6th, 2005, 04:24 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 1,029 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2966446 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 1 Week 12 h 55 m 59 sec
Reputation Power: 16
Send a message via ICQ to Itsacon
Quote:
Originally Posted by schopra
Simplest way to do this is by removing Header and Footer in IE's File -> Page Setup dialog box
But that only works on your own box. I assume gbaia wants it to work with everybody who tries to print something from his site.
Personally, I think the fact this isn't possible (it isn't I can tell you) is a Good Thing. If I print something, it usually ends up filed somewhere, and it's handy to be able to find the source of that later on.
If you really want to affect the way something is printed, make a PHP page and output the document in PDF.
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 592

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Using window.print without printing header and footer


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap