Solved

Set Print Parameters in source

Posted on 2004-04-15
4
252 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Format results with PHP 3 68
RESTful API no sessions but track a user who doesn't have an account 2 115
Build and evolve an interactive experience 1 89
Magento Indexing 1 89
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 …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now