Click here to Skip to main content
15,910,358 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Delete item from xml??? Pin
Daron Tan3-Sep-03 6:02
Daron Tan3-Sep-03 6:02 
GeneralHit Counter Component Pin
Mazdak30-Aug-03 11:29
Mazdak30-Aug-03 11:29 
GeneralPERL: use strict problem Pin
brianwelsch30-Aug-03 5:18
brianwelsch30-Aug-03 5:18 
GeneralRe: PERL: use strict problem -GOT IT Pin
brianwelsch30-Aug-03 9:59
brianwelsch30-Aug-03 9:59 
Generalsetting print options in javascript Pin
webProgrammer28-Aug-03 9:57
webProgrammer28-Aug-03 9:57 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 4:45
Diederik de Haas5-Sep-03 4:45 
GeneralRe: setting print options in javascript Pin
webProgrammer5-Sep-03 6:05
webProgrammer5-Sep-03 6:05 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 12:12
Diederik de Haas5-Sep-03 12:12 
Hai webProgrammer,

Security point:
I think that it's very dangerous when some javascript can control the browser. If the browser allowed a script to change some options on print dialog, why shouldn't that be also used to change (for example) your browser settings, like your security settings. Therefor I'm quite sure that what you want to do won't be allowed by the browser.

So that basically rules out the javascript approach.
With HTML you define the structure and the text within that of a webpage. The formatting should be done with Cascading Style Sheets. If you don't know how to write a CSS file and link it to your webpage, then take a look at W3Schools or something like that. The official specifications can (of course) be found at www.w3.org/Style/CSS.

As you've noticed a webpage on your screen doesn't always look good when it's printed. Therefor you can create different stylesheets for different media. You indicate through the media attribute of the link-element to what media the stylesheet should be applied. If you don't specify the media attribute, the default value of 'all' is used.
By using media="print" for a stylesheet you tell the browser to only use that stylesheet for printing.
There's a section of the CSS Level 2 specification which handles that aspect and it's called paged media.

You might want to take a look at
section 13.2.2 Page size: the 'size' property, because there you'll find your answer.
Example of landscape setting:
@page {
size: landscape;
}

Hope this is more clear Wink | ;)
GeneralRe: setting print options in javascript Pin
webProgrammer5-Sep-03 12:30
webProgrammer5-Sep-03 12:30 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 13:25
Diederik de Haas5-Sep-03 13:25 
GeneralGetting Server Drive Space Info Pin
Nino_127-Aug-03 10:11
Nino_127-Aug-03 10:11 
QuestionHow to get response after posting form data Pin
haritadala27-Aug-03 7:59
haritadala27-Aug-03 7:59 
AnswerRe: How to get response after posting form data Pin
brianwelsch31-Aug-03 3:38
brianwelsch31-Aug-03 3:38 
GeneralRe: How to get response after posting form data Pin
haritadala1-Sep-03 3:51
haritadala1-Sep-03 3:51 
GeneralRe: How to get response after posting form data Pin
brianwelsch2-Sep-03 13:57
brianwelsch2-Sep-03 13:57 
Generalcreate a pdf document with ASP Pin
Jerome Conus26-Aug-03 19:56
Jerome Conus26-Aug-03 19:56 
GeneralRe: create a pdf document with ASP Pin
Vasudevan Deepak Kumar2-Sep-03 18:46
Vasudevan Deepak Kumar2-Sep-03 18:46 
GeneralCompletely Confused Pin
RB@Emphasys26-Aug-03 16:41
RB@Emphasys26-Aug-03 16:41 
GeneralHelp! Pin
lnong26-Aug-03 9:55
lnong26-Aug-03 9:55 
GeneralASP: Connection problem (MySQL) Pin
knoppen26-Aug-03 3:48
knoppen26-Aug-03 3:48 
GeneralRe: ASP: Connection problem (MySQL) Pin
MKlucher28-Aug-03 17:54
MKlucher28-Aug-03 17:54 
GeneralRe: ASP: Connection problem (MySQL) Pin
Diederik de Haas5-Sep-03 5:00
Diederik de Haas5-Sep-03 5:00 
GeneralLayout question Pin
Tomas Petricek26-Aug-03 0:35
Tomas Petricek26-Aug-03 0:35 
GeneralRe: Layout question Pin
Paul Watson26-Aug-03 1:10
sitebuilderPaul Watson26-Aug-03 1:10 
GeneralRe: Layout question Pin
Tomas Petricek26-Aug-03 1:22
Tomas Petricek26-Aug-03 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.