Solved

Set Print Parameters in source

Posted on 2004-04-15
4
257 Views
Last Modified: 2012-05-04
is there a way to set printing paramaters in the source of an web page ...
im looking to scrap the headder and footer (page title, page number,page source, ....)
also landscape vs portrait

thnx
0
Comment
Question by:apinsonn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:apinsonn
ID: 10835757
oh ... lanuguages ...  vb script, java script ... basic html .... this file will be printed from local machine so it cant have serverside complied languages
0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 25 total points
ID: 10836265
Can't be done with HTML or scripting.  You either have to convert it to a print friendly format like PDF, or use activeX.

The is activex  piece is commonly used:

http://www.meadroid.com/scriptx/index.asp

Cd&
0
 
LVL 2

Accepted Solution

by:
sarahk earned 25 total points
ID: 10862741
You have a certain amount of control using the print option for a stylesheet. You can quite dramatically change the look of your page so that it prints well.

Essential Reading:
http://www.alistapart.com/articles/goingtoprint/
http://www.w3.org/TR/2003/WD-css-print-20031218/

However I haven't ever managed to get a proper page break to work, maybe I haven't tried hard enough.
0
 
LVL 2

Expert Comment

by:sarahk
ID: 10862755
And don't forget that some users will have their printers set for "letter" and some for "A4" sized paper and you won't be able to detect that from the browser. You will need to keep your printing requirements fairly loose to allow for this.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to count occurrences of each item in an array.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question