| | |
Javascript printing problems
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 22
Reputation:
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.
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.
•
•
•
•
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.
e.g.
<link rel="stylesheet" type="text/css" href="mystyle.css" />
you should add media="all" definition in order styles not to be ignored.
Good luck
" Of all the things I've lost,
I miss my mind the most...."
Mark Twain
I miss my mind the most...."
Mark Twain
•
•
Join Date: Mar 2007
Posts: 22
Reputation:
Solved Threads: 0
•
•
•
•
Hi , check how did you attached the style sheet.
e.g.
<link rel="stylesheet" type="text/css" href="mystyle.css" />
you should add media="all" definition in order styles not to be ignored.
Good luck
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....
![]() |
Similar Threads
- Crystal report in vb.net, printing problems (VB.NET)
- Using "variable variables" in Javascript (JavaScript / DHTML / AJAX)
- Setting up wireless printing - having problems (Networking Hardware Configuration)
- Printing problems (C#)
- The dreaded Javascript link problems (Web Browsers)
- Mac10.3 Printing Problems (OS X)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: jstool
- Next Thread: using if condition & functions in JS
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxjspservlets array browser bug calendar captchaformproblem cart checkbox child class close codes createrange() cursor date debugger decimal dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post programming progressbar prototype redirect regex runtime safari scale scriptlets scroll search security shopping size software sql text textarea toggle unicode web windowsxp wysiwyg \n





