Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 22nd, 2005, 11:38 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
Footers

Probably the wrong place to put this but hey...

Wondering if there is anyway to stop the footers printing in IE?

I know I can do it via print options but that's not suitable; this is for other people printing who won't know how to do that and can't be bothered (i.e. users )

Any ideas? Fairly sure it can't be done with CSS but happy to be proved wrong.

Cheers,

Dean

Reply With Quote
  #2  
Old October 25th, 2005, 06:54 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
Footers?
__________________
Practice safe design all ways use a concept.

If I have been helpful please click the scales.

Reply With Quote
  #3  
Old October 25th, 2005, 05:00 PM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
The bit that prints at the bottom of a webpage.

Normally a location string or similar.

Reply With Quote
  #4  
Old October 25th, 2005, 05:04 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
i believe that can only be shut off by the printer settings.
__________________
Come JOIN the party!!!

Quote of the Month:
Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use.

Questions to Ponder:
What do you do when you see an endangered animal eating an endangered plant?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #5  
Old October 26th, 2005, 05:00 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
ah yeh sorry mate, no idea on that one.

Reply With Quote
  #6  
Old October 26th, 2005, 01:30 PM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
Ah well; was just incase anybody knew any little "quirks" that could do it.

Had an idea that would be the only way.

Cheers all,

Dean

Reply With Quote
  #7  
Old October 26th, 2005, 02:03 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
okay ... so i found something that may work ... it's vbscript ...
Code:
Dim WSHShell
    Dim myHeader
    Dim myFooter
    Set WSHShell = CreateObject("WScript.Shell")
    //After declaring the variables, 
    //the code first captures the current settings of browsers header and footer:
    myHeader = WSHShell.RegRead("HKCU\Software\Microsoft\Internet Explorer\PageSetup\header")
    myFooter = WSHShell.RegRead("HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer")

    //It then proceeds to delete the current settings:
	WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
    WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""
	
    //Code to print the page with no user intervention
    Dim objIEA
    Set objIEA = CreateObject("InternetExplorer.Application")
    objIEA.Toolbar = False
    objIEA.Visible = True
    objIEA.Navigate "http://www.google.com"
    While objIEA.Busy
    Wend
    objIEA.ExecWB 6,2
    Set objIEA = Nothing
	
    //Resets the header and footer back to what the user had to begin with
    WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", myHeader
    WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", myFooter


I found this on the net ... just don't remember where ... it was located in the back of my code snippet database and I forgot all about it. You may want to try playing with this and see if it will work

(only works in IE, need ActiveX set to at least prompt, will remove Printer headers and footers and reset them back.)
Comments on this post
Calldean agrees: Worked perfectly! Cheers,

Reply With Quote
  #8  
Old October 26th, 2005, 05:08 PM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
I'll try that in work tomorrow.

Cheers!

Dean

Reply With Quote
  #9  
Old October 27th, 2005, 11:20 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
cool ... glad it worked for you ...

Reply With Quote
  #10  
Old October 29th, 2005, 12:01 AM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,381 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 23 h 7 m 43 sec
Reputation Power: 1488
Quote:
Originally Posted by Calldean
I'll try that in work tomorrow.
Cheers!
Dean

What OS were you using on your server to do this? I tried to use this today using Windows 2003 server and it didn't work. It gave me an error that it couldn't find the registry key
Code:
HKCU\Software\Microsoft\Internet Explorer\PageSetup\header

Thanks in advance
__________________
................... ASCII and ye shall receive ..................
Knowledge is the only resource on earth that multiplies when shared


Support the Shemzilla Project
Powered by C#

Reply With Quote
  #11  
Old October 29th, 2005, 05:08 AM
Calldean's Avatar
Calldean Calldean is offline
Semi-Retired Geek
ASP Free Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Liverpool
Posts: 681 Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level)Calldean User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 20 h 46 m
Reputation Power: 6
Windows 2000/NT; haven't tried it on an NT machine yet though.

Reply With Quote
  #12  
Old October 30th, 2005, 12:01 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
Quote:
Originally Posted by lewy
What OS were you using on your server to do this? I tried to use this today using Windows 2003 server and it didn't work. It gave me an error that it couldn't find the registry key
Code:
HKCU\Software\Microsoft\Internet Explorer\PageSetup\header

Thanks in advance


I tried it as a test on our company's intranet ... that is running on a 2003 Server.

Reply With Quote
  #13  
Old October 30th, 2005, 12:07 AM
lewy's Avatar
lewy lewy is offline
Alter Ego Wizard
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,381 lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)lewy User rank is General 8th Grade (Above 100000 Reputation Level)