Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set Print Parameters in source

Posted on 2004-04-15
4
Medium Priority
?
264 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
  • 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 75 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 75 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

782 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