p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   HTML Code Clinic (http://p2p.wrox.com/forumdisplay.php?f=90)
-   -   Part of page won't print? (http://p2p.wrox.com/showthread.php?t=68144)

Ron Howerton May 15th, 2008 01:57 PM

Part of page won't print?
 
I can't find anything like this reported anywhere on the web!

Part of a web page won't print and it used to. The first page comes out virtually blank except for the standard IE headers and footers. The Form title is missing as is all of the text that appears in the browser. Printing resumes with the next page.

If I methodically remove chunks of the page above wherte the printing resumes, it eventually prints. However, removing different HTML lines produces the same results, so it doesn't appear to be associated with a specific line in my HTML file, but rather the number of lines before this occurs.

To anticipate any questions:

1. The HTML is being generated. This is not a hard-coded HTML page.
2. Some of the other pages in the same application print just fine.
3. The same problems happens on every computer in our organization, so this is not just limited to my PC.

Any clues what to look for?

philip_cole May 25th, 2008 05:29 PM

Hi Ron

Obviously its tricky to know what's going on without seeing the actual code or resulting printout. The obvious basics are to remember that background colours are generally not printed, and to check for badly formed HTML, such as a missing closing element like </div>.

Another culprit is often CSS (style sheets). If it displays on screen but not on paper, there may be some CSS somewhere which hides the content on printing - look for things like @media screen or @media print, which allows for different styles for screen display and printing.

I have also heard that there is a bug in IE that does randomly not print certain things, but I don't know the exact details. Try printing it with Firefox or another browser.

HTH

Phil

chroniclemaster1 May 28th, 2008 10:01 PM

What content is on the page? Is there a form? Text only? And what exactly is not showing up, text pictures, etc.?

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.


All times are GMT -4. The time now is 10:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.