| Author |
IE is printing an extra page while Firefox is not
|
|
|
| I view the same page in IE and Firefox. When I print form either, IE prints
an extra blank page at the end while Firefox prints correctly and does not.
Any ideas?
Here's the end of the source page:
....
<body>
<FORM>
<INPUT TYPE="button" onClick="window.print()" value="Print This"
class="prnt">
</FORM>
<div class="schedules"> <table class="dataTable">
<tr><th scope="col" colspan="4">Title</th><th scope="col" colspan="4">As of:
November 01, 2007</th></tr>
<tr><th scope="col"></th><th scope="col">Description</th><th
scope="col">Serial #</th><th scope="col">Value</th><th scope="col">Date
Added<br />Stopped</th><th scope="col">Cost</th></tr>
<tr><td class="property_columns">1</td><td class="property_columns">LAPTOP
COMPUTERS</td><td class="property_columns"></td><td
class="property_columns">$200</td><td class="property_columns"><br
/></td><td class="property_columns">$75</td></tr>
.....
<tr><td colspan="7">text here</td></tr>
</table>
</div><!--End of div tag-->
</body>
</html>
And here's the stylesheet:
@CHARSET "ISO-8859-1";
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
margin: 10px;
padding: 0;
}
..header1{width: 100%;font-size: 20px;font-weight: bold;text-align:center;}
..header2{width: 100%;font-size: 14px;text-align:center;}
..header3{width: 100%;font-size: 11px;text-align:center;}
..schedules{display:block;page-break-after:always}
..dataTable{width: 100%;border-collapse: collapse;}
..dataTable td{padding: 6px;margin: 0px;}
..dataTable td.property_columns{width:80px;border-top:1px solid #CCCCCC;}
..dataTable th{font-weight: bold;text-align: left;font-size:
10px;background-color: #DDDDDD;border-bottom: medium double #000000;}
| |
| Beauregard T. Shagnasty 2007-10-26, 6:19 pm |
| Paul wrote:
> I view the same page in IE and Firefox. When I print form either,
Print form? Print a form? Or is that a typo for "print from" ?
> IE prints an extra blank page at the end while Firefox prints
> correctly and does not.
>
> Any ideas?
Yes.
> Here's the end of the source page:
Provide the URL to the page so someone can test it. You code leaves so
much out, any answer would just be a guess.
--
-bts
-Motorcycles defy gravity; cars just suck
| |
|
| "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
news:33oUi.279337$ax1.266236@bgtnsc05-news.ops.worldnet.att.net...
> Paul wrote:
>
>
> Print form? Print a form? Or is that a typo for "print from" ?
>
>
> Yes.
>
>
> Provide the URL to the page so someone can test it. You code leaves so
> much out, any answer would just be a guess.
Sorry, it is an intranet and not available to the world. What else do you
need? When I say print, I mean the user is trying to print the page, The
page is formatted as a report, though that doesn't matter. I thought I had
given all the supporting code. What am I missing for your help?
| |
|
| "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
news:33oUi.279337$ax1.266236@bgtnsc05-news.ops.worldnet.att.net...
> Paul wrote:
>
>
> Print form? Print a form? Or is that a typo for "print from" ?
typo - print FROM...
| |
| Beauregard T. Shagnasty 2007-10-26, 6:19 pm |
| Paul wrote:
> Sorry, it is an intranet and not available to the world. What else do you
> need?
Some more details from you on what you already tested?
Whether or not you validated the code and CSS?
Whether or not you are using a proper DOCTYPE that doesn't throw the
non-conformant IE into Quirks mode?
> When I say print, I mean the user is trying to print the page, The
> page is formatted as a report, though that doesn't matter. I thought
> I had given all the supporting code. What am I missing for your
> help?
Don't you have any web server somewhere that you could upload a test
case?
I was able to do that (with what most consider extra effort) here:
http://k75s.home.att.net/test/paul.html
I commented out the "page-break-after" and now IE only prints one sheet
of paper:
..schedules{display:block;/* page-break-after:always */}
I also added a DOCTYPE, and removed your "@CHARSET "ISO-8859-1";" as
that does not belong in CSS.
There are errors in your markup, so all bets are off as to how various
browsers will try to correct them.
<http://validator.w3.org/check?uri=h...oup=0&verbose=1>
Your CSS does validate:
<http://jigsaw.w3.org/css-validator/...est%2Fpaul.html>
--
-bts
-Motorcycles defy gravity; cars just suck
| |
|
| many thanks!
"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
news:Q3pUi.279606$ax1.24760@bgtnsc05-news.ops.worldnet.att.net...
> Paul wrote:
>
>
> Some more details from you on what you already tested?
> Whether or not you validated the code and CSS?
> Whether or not you are using a proper DOCTYPE that doesn't throw the
> non-conformant IE into Quirks mode?
>
>
> Don't you have any web server somewhere that you could upload a test
> case?
>
> I was able to do that (with what most consider extra effort) here:
> http://k75s.home.att.net/test/paul.html
>
> I commented out the "page-break-after" and now IE only prints one sheet
> of paper:
>
> .schedules{display:block;/* page-break-after:always */}
>
> I also added a DOCTYPE, and removed your "@CHARSET "ISO-8859-1";" as
> that does not belong in CSS.
>
> There are errors in your markup, so all bets are off as to how various
> browsers will try to correct them.
>
> <http://validator.w3.org/check?uri=h...oup=0&verbose=1>
>
> Your CSS does validate:
> <http://jigsaw.w3.org/css-validator/...est%2Fpaul.html>
>
> --
> -bts
> -Motorcycles defy gravity; cars just suck
| |
| Johannes Koch 2007-10-26, 6:19 pm |
| Beauregard T. Shagnasty schrieb:
> I [...] removed your "@CHARSET "ISO-8859-1";" as
> that does not belong in CSS.
CSS 2(.1) spec, section 4.4.
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
| |
| Beauregard T. Shagnasty 2007-10-26, 6:19 pm |
| Johannes Koch wrote:
> Beauregard T. Shagnasty schrieb:
>
> CSS 2(.1) spec, section 4.4.
Hmm. Not seen that one before. <sigh>
Though after reading it, I don't see any practical use for it. :-)
--
-bts
-Motorcycles defy gravity; cars just suck
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |