954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Javascript printing problems

Hello.
I have an ASP page that require printing.
The page is about showing some data from database.
I use the simple javascript printing :

javascript:window.print()

The page design use some css templates.
Well it does print. But it only prints the images and the texts.
The print out seems dont load the css.
Can anybody have the solution so i can print the page exactly as it is shown on the browser.

Many thanks for the help.

enggars
Newbie Poster
22 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Hello. I have an ASP page that require printing. The page is about showing some data from database. I use the simple javascript printing :

javascript:window.print() The page design use some css templates. Well it does print. But it only prints the images and the texts. The print out seems dont load the css. Can anybody have the solution so i can print the page exactly as it is shown on the browser.

Many thanks for the help.


Hi , check how did you attached the style sheet.
e.g.

you should add media="all" definition in order styles not to be ignored.

Good luck

Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

Hi , check how did you attached the style sheet. e.g.

you should add media="all" definition in order styles not to be ignored.

Good luck


Hi..
Well well... my problem solved through a single word.
i did change the media="screen" into media="all", and it works.
The page printing is exactly the same as it shown.

Thanks Rhyan....

enggars
Newbie Poster
22 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You