Link to home
Create AccountLog in
ASP

ASP

--

Questions

--

Followers

Top Experts

Avatar of pegmoran
pegmoran🇺🇸

Printing with no headers or footers
I've searched and can't find a definitive answer to this question.  I need to have users print a form (workorder) without it automatically adding the headers and footers to the printout.  They will be printing to a multipart form that already has the company logo, etc on it.  I just need to fill in the details of the workorder.  Can this be done?? I'm using .asp and javascript.

TIA

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of brunobruno🇺🇸

what headers are footers are you referring to?

Avatar of pegmoranpegmoran🇺🇸

ASKER

The title, the page number (headers) - the url, date (footers)

Avatar of brunobruno🇺🇸

Those are elements added by the client browser - nothing you can control from within the code.  You can control the settings from within the browser however, under Page Setup.

bruno

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


clear them out the header and footer sections page setup in internet explorer - File...Page Setup

Avatar of pegmoranpegmoran🇺🇸

ASKER

Yes, I realize that but my client doesn't want his users to have to make that change.  Wants it transparent.  I saw some javascript posted somewhere that supposedly works, but I can't get it to work.

ASKER CERTIFIED SOLUTION
Avatar of bigbillydotcombigbillydotcom

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of pegmoranpegmoran🇺🇸

ASKER

Thanks BigBilly - I'll check it out now!

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


in order for the javascript to work, they have to be images or other named elements within the document
then you use the onbeforeprint and onafterprint events in the body tag, and show and hide elements in those scripts

but like you said, I dnot beleive that has anything to do with the headers/footers in IE

I have used Meadco ScriptX on a ton of pages to do just that

Meadco says about ScriptX:

Absolute control for those who need to print html documents from client and server computers running Microsoft's Internet Explorer browser.

Support for all versions of Internet Explorer from IE 4.01 SP1 to IE 6.0 SP2 on Microsoft operating systems from Windows 95 to Windows XP SP2.


Avatar of fritz_the_blankfritz_the_blank🇺🇸


Avatar of pegmoranpegmoran🇺🇸

ASKER

BigBilly - which module of ScriptX do you use?  Basic or Advanced?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of brunobruno🇺🇸

Please keep in mind about ScriptX - it's activeX and users will need permission to install - this is from the ScriptX website:

Installing the ScriptX software

Installation of the ScriptX software is automatic. The first-ever time a user visits a ScriptX-enabled document, smsx.cab is downloaded and the user is prompted to accept the ScriptX and Security Manager controls by Internet Explorer's standard Authenticode security mechanism.

If the users accept the prompt - and if Internet Explorer on the client machine has been set up correctly to accept and run 'safe' digitally-signed ActiveX content and IF THE USER HAS PERMISSION TO DO SO * - the binaries will be installed and ScriptX-enabled content will then run on that machine.

* For those network environments where client workstations are 'locked down', MeadCo will supply system administrators with an installation executable with which they can 'push' out and pre-install the licensed binaries on their client machines.

>>I am afraid that you are out of luck:

I agree with the blank-o-fritzee - unless you use ScriptX or other ActiveX that can configure client side IE settings (I dont know of any other) taint no other way I know of

Avatar of fritz_the_blankfritz_the_blank🇺🇸

I was hoping that there would be a CSS print media option,  but unfortunately, that does not seem to work. The only other option is to spawn a .pdf file.

FtB

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Basic version

Avatar of pegmoranpegmoran🇺🇸

ASKER

On another note, when you clear out your headers & footers in page setup, I noticed that they remain cleared with each new browser window you open.  After a reboot, does this revert back or is it a one time setting?

its a one time setting

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

ASP

ASP

--

Questions

--

Followers

Top Experts

Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.