simple printer issue ( i hope )

JavaScript and client side scripting.

Moderator: General Moderators

Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

simple printer issue ( i hope )

Post by Charles256 »

is it possible to not print the web address whenever you print a webpage?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

We have no control over that.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Put it in a div that is hidden by the screen style sheet and visible in the print style sheet.

EDIT: Never mind, I didn't see the word NOT in there :roll:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

mozilla/firefox: menu file->page setup->margins/headers/footers. There's a dropdown currently selecting URL, change it to blank.
ie: file->page setup. remove the &u from the footer field.
client-side script: never heard of, probably not possible.
server-side script: no way.
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

&w&bPage &p of &P

that's in the headeR? what does all that mean?
&u&b&d
and in the footer what does that mean? thank's a lot for the help. :-D

nevermind- here's the info -
http://www.weizmann.ac.il/IU/faqs/printing.html
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

or you press the ? button on the page setup dialog and then click in the header/footer field.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I have no answer, but do have a question...

What possible purpose would you have to hide the address from printed pages???

If it's your website, it's only a good thing...and if it's someone else's it's likely also either good or nothing, not bad...

If strictly for aesthetics...and you need total control, why not send the output to PDF and let the user print the way printing document online was intended :P

A few classes exist for dealing with PDF documents...I can' imagine it being very difficult

Cheers :)
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

it's for printing out upc labels..i still have the issue of instead of feeding it a whole page i just want it to print the text and then simply stop when it's done...bah...i don't think it can be done... :-/
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If anywhere, that would be in the drivers for the printer. I have no idea how newer operating systems react to tractor-feed printers..
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

that's what i was thinking.beginning to suspect win xp doesn't like em... :(
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

can you explain the whole enterprise in more detail please.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Charles256 wrote:&w&bPage &p of &P

that's in the headeR? what does all that mean?
&u&b&d
and in the footer what does that mean? thank's a lot for the help. :-D

nevermind- here's the info -
http://www.weizmann.ac.il/IU/faqs/printing.html
The &x things are just preset stuff. Like page numbers. &p will be the current page, &P will be total pages. &b might bold the following text. &d will probably be the date. &w will probably be the web address. Delete some stuff out of it and check print preview to find out. Google will tell you all this I think.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Why bother with "probably" and google. The IE tells you. Just press the ? button.

Image
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

okay.user enters product price tag information and then clicks process.a webpage comes up with the upc's set up
say

Code: Select all

upc upc upc upc upc upc
and i have a pin feed printer that is fed the labels and what it'll do is print

Code: Select all

upc upc upc upc upc upc
where the extra whitespaceis more labels it just fed for no reason.
what i need it to prin tis

Code: Select all

upc upc upc upc upc upc
without it feeding all those labels.make more sense?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Where are the UPC's coming from? I am not sure the header and footer data on the page are making that space. If they are, change your header and footer to empty and reduce the header and footer margins in the page set up to 0. If there is a gutter property, change that to say.05 or something small. See if that helps.

Just keep in mind that print settings like these are based on a users browers settings and cannot be changed by the script (unless you are doing something immoral or unethical :wink: ).
Post Reply