 |
 |
Disable Header printing in NN7
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I work as part of sales team for a small UK based electronic entertainment company. Our stock ordering system is going through an overhaul as a result of the increased demands being placed on the ordering system.
Part of this streamlining process involves the creation of printable invoices from web pages and online forms. Privacy is an issue ,As these invoices will eventually be dispatched to customers and obviously we wish to protect certain information.
When printing web pages from within Netscape Navigator 7, the document URL is printed (as is other information) in the header/footer of the printed page.
It is possible to disable this feature on NN7 for PC by going:-
1. File-->Page Setup.
2. Select the "Margins & Header/Footer" tab
3. Changing the "Headers & Footers" roll-out menus accordingly
This feature is not present on the MAC version of NN7. Is there an alternative method with which to turn off this unwanted information or is the MAC NN7 incable of removing the header/ footer from a printed web page?
Any Information would be greatly appreciated (and may help me to obtain a small bonus!).
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I forgot to say. I'm forced to stick with NN7 so solutions involving alternative browsers aren't valid. Sorry.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2002
Location: Australia
Status:
Offline
|
|
Originally posted by NoobyPHP:
I work as part of sales team for a small UK based electronic entertainment company. Our stock ordering system is going through an overhaul as a result of the increased demands being placed on the ordering system.
Part of this streamlining process involves the creation of printable invoices from web pages and online forms. Privacy is an issue ,As these invoices will eventually be dispatched to customers and obviously we wish to protect certain information.
When printing web pages from within Netscape Navigator 7, the document URL is printed (as is other information) in the header/footer of the printed page.
It is possible to disable this feature on NN7 for PC by going:-
1. File-->Page Setup.
2. Select the "Margins & Header/Footer" tab
3. Changing the "Headers & Footers" roll-out menus accordingly
This feature is not present on the MAC version of NN7. Is there an alternative method with which to turn off this unwanted information or is the MAC NN7 incable of removing the header/ footer from a printed web page?
I use Mozilla 1.3 which also uses the Gecko engine as Netscape 6 or 7, so I guess the workaround I have would also work in Netscape 7.
1. Quit Netscape 7 (if you haven't done so)
1. Find your prefs.js file (It should be under one of the directory under ~yourusername/Library/Mozilla/Profiles/... directories; use the find command to help you to locate it.
2. Made a backup copy of prefs.js (in case you stuffed up  )
3. Add the following six lines into your prefs.js file:
user_pref("print.print_footercenter","");
user_pref("print.print_footerleft","");
user_pref("print.print_footerright","");
user_pref("print.print_headercenter","");
user_pref("print.print_headercenter","");
user_pref("print.print_headercenter","");
4. Save prefs.js.
5. Start Netscape 7 again.
6. Try print a web page again.
You can use this trick on any platform of Netscape 6,7 or Mozilla.
Also, there's a lot of other Netscape/Mozilla setting that you can change but not changable vis simply menus. If you want to see what other things you can change, type about :config in the URL field and see there's a lot more you can change that nobody told you before!
Originally posted by NoobyPHP:
Any Information would be greatly appreciated (and may help me to obtain a small bonus!).
Now, may I have a share of your bonus? 
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
Thank you very much. I haven't yet had a chance to try out your solutnion but I'm due at work soon.
Fingers crossed!
Cheers,

|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
user_pref("print.print_footercenter","");
user_pref("print.print_footerleft","");
user_pref("print.print_footerright","");
user_pref("print.print_headercenter","");
user_pref("print.print_headercenter","");
user_pref("print.print_headercenter","");
I tried the proposed solution with no luck, on my MAC NN7, the header and footer still appear. I stuck the code in the 'user.js' file as this is supported by NN7 and a preferred method to altering the prefs.js.
What exactly is this JS doing? I assume it's getting the property "print_..." and filling it with an empty string, right? Could I there for do this?..
user_pref("print.print_footercenter","Red");
user_pref("print.print_footerleft","Green");
user_pref("print.print_footerright","Blue");
...making the footer display the names of various colours?
The more I investigate, the more I think the functionality to alter this header and footer information has been completely removed from the MAC version though quite why I'm not sure.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I've sinced used the about:config URL in netscape to find out what's happening to the preferences I'm setting. According to the browser, they are being set correctly. Still, I'm getting the same old results.
Curiously though, I'm getting the same results from both PC and MAC. Coult this mean that though my pref's are correct, they are not overriding the defaults?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2002
Location: Australia
Status:
Offline
|
|
Originally posted by NoobyPHP:
I tried the proposed solution with no luck, on my MAC NN7, the header and footer still appear. I stuck the code in the 'user.js' file as this is supported by NN7 and a preferred method to altering the prefs.js.
What exactly is this JS doing? I assume it's getting the property "print_..." and filling it with an empty string, right? Could I there for do this?..
user_pref("print.print_footercenter","Red");
user_pref("print.print_footerleft","Green");
user_pref("print.print_footerright","Blue");
...making the footer display the names of various colours?
The more I investigate, the more I think the functionality to alter this header and footer information has been completely removed from the MAC version though quite why I'm not sure.
Oh dear...
I tried myself tonight and I couldn't get it work either
Don't know why, may be those Mozilla folks hasn't implement those preference settings yet??
Well, since you are using Netscape 7, may be a tech support email to Netscape might be able to help
Sorry I didn't tell you something that would work 
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I've managed to get things sorted and can now override the user prefs in NN7 for.... PC.
To get right to the root of the problem I had to find "comm.jar" in netscape/chrome/, open it up using Winzip and take out "printpageprefs.js" (or a similar file, I forget the exact name). In there was the very code that assigns the values to the Headr/Footer so by snipping it at the root I was able to remove this information from the PC version of NN7.
When I tried this on a mac though (albeit using stuffit and simpletext, rather than winzip and notepad) I just made Netscape unstable, it even failed to load at all at times!
So as soon as I find out how to sucsesfully edit comms.jar on a MAC then I'm sorted, it's just finding out how I do this that poses a problem!
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2002
Location: Australia
Status:
Offline
|
|
Originally posted by NoobyPHP:
I've managed to get things sorted and can now override the user prefs in NN7 for.... PC.
To get right to the root of the problem I had to find "comm.jar" in netscape/chrome/, open it up using Winzip and take out "printpageprefs.js" (or a similar file, I forget the exact name). In there was the very code that assigns the values to the Headr/Footer so by snipping it at the root I was able to remove this information from the PC version of NN7.
When I tried this on a mac though (albeit using stuffit and simpletext, rather than winzip and notepad) I just made Netscape unstable, it even failed to load at all at times!
So as soon as I find out how to sucsesfully edit comms.jar on a MAC then I'm sorted, it's just finding out how I do this that poses a problem!
Are you using MacOS 9 or MacOS X?
I am using MacOS X, and I'm looking at the package within a Netscape 6.2 package. If I can spend a bit time to look further this weekend I might be able to find the changes needed somewhere 
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I have managed to change the relevant variables and repackage the MAC NN7 "comm.jar" so that it runs without crashing. All my fiddling still hasn't made a difference however,
the headers still print!
"file-->page setup" on PC navigates to the Netscape print options page but on the MAC at work it brings up the epson (our printer, obviously) print options box. Could this in someway override the default NN7 information? I'm rather clutching at straws here it's all getting a little overwhelming!
Cheers for helping my investigate the problem. May you have better luck than I'm having!
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
I guess your luck was as "good" as mine after all?
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2002
Location: Australia
Status:
Offline
|
|
Originally posted by NoobyPHP:
I guess your luck was as "good" as mine after all?
I'm afraid I have been pretty busy for the last week or two (busy for work and organising all those stuff before getting a cable internet service to be installed next week...
I hope I can have some spare time on this Sunday.
Any luck on your side?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2003
Status:
Offline
|
|
'fraid not.
I'm now at the stage where I can make the PC Mozilla sing and dance. I'm quite amazed at how customizable Mozilla actually is!
I found antoher file which seemed like a no-brainer. In the "default" Mozilla or NN directory is a file called "all.js" containing, as you'd expect, all the default preferences. Change these then check about:config in Mozilla and hey-presto! No header/footer info' is apparently displayed! Once again however, this only works on PC.
So basically, the situation is this... Between Comm.Jar, User.js and all.js I can make Mozilla for PC forget that such a thing as print headers exist but none of this information makes the blindest bit of difference on a MAC.
I'm now of the thought that pref's belonging to the printer at work (an Epson Laser-jobby) override the Mozilla pref's though this is rapidly becoming guesswork, I'm running out of ideas.
It would help if I had a Mac to hand but unfortunately I've only access to one at work and though my boss is keen to see the problem solved, he'n to keen for me to spend any time trying to solve it!
Lastly, I managed to display this in my "prefs.js"...
user_pref("print.printer_Canon_BJC-3000_(BJRSTR).print_headerright", "");
It cam about after making alterations to the all.js default preferences file. This is the only idea I've not been able to experiment with a MAC because I can't identify what the printer is called on the system at work. I think this could well be another red herring however as I'm now pretty much convinced it's a printer issue, rather than a browser issue.
How is it possible to override the printer's own setup dialogues with the Mozilla print setup?
I wish I knew more about MACs! Ah well, I hope the above guff proved of some investigative use but I wouldn't bother yourself overly with me' problem, it's just proved rather infuriating - such an obvious feature to include, why neglect it?
Cheers
(Last edited by NoobyPHP; Apr 5, 2003 at 01:38 AM
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |