Jump to content

Regarding printing...


Guest xexre
 Share

Recommended Posts

Hi there :)I just had a quick, and probably a very ridiculous question.I'm familiar with the print.window() function, but I'm looking for something a little bit more flexible, and I'm not sure a JS can accomplish this....I have several pages on a form that individuals fill out that I need them to print. I don't need them to print the entire document, mind you, so print.window() isn't going to help out a whole lot. Is there any function within JavaScript that will allow me to print specific pages of my document?Thanks in advance for any responses to this.

Link to comment
Share on other sites

As aspnetguy just (coincidentally) posted in another post, you may be able to use the media types in CSS to build a page specifically for printers.

<link rel="stylesheet" type="text/css" href="main.css" media="all" /><link rel="stylesheet" type="text/css" href="print.css" media="print" />

Then, in your print.css file, you could hide (using display: none;) all of the content that you don't want to print.Incidentally, it's window.print() rather than print.window().

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...