Technology Questions

Go Back   Technology Questions > Software Questions > Internet > Internet Explorer

Internet Explorer Discuss IE7 or any other IE version.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 09-19-2007, 03:56 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Printing Problems in IE7 with Span and Table

There's a Problem in Printing Pages from IE7 with nested Tables and Spans and
100% height. This Sample Page let the IE (in Page preview) endless growing up
the Pages count so its impossible to print such pages over more than 1 site:

<html>
<body>
<table>
<tr>
<td>
<span style="height:100%">
<table height="100%">
<tr>
<td style="font-size: 200px">

Test<br>Test<br>Test<br>Test<br>Test<br>Test
</td>
</tr>
</table>
</span>
</td>
</tr>
</table>
</body>
</html>

IE Version: 7.0.5730.11
OS Version: Win XP DE SP2, Build 2600

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...plorer.general
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 09-19-2007, 03:56 AM
  #2 (permalink)  
Old 09-19-2007, 03:56 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

Fontsize:200px?

Tools>Internet Options - General tab, Accessibility button, check "Ignore
font sizes specified on web pages"

Another instance of 'what you code is not what the user sees'. The User is
King! Avoid using hardwired absolute font sizing. All browsers will default
to use the users preferences.

Regards.
"René Ziller" <René Ziller@discussions.microsoft.com> wrote in message
news:2F595469-E4E8-4CC0-9BCE-2B2B64D17AA6@microsoft.com...
> There's a Problem in Printing Pages from IE7 with nested Tables and Spans
> and
> 100% height. This Sample Page let the IE (in Page preview) endless growing
> up
> the Pages count so its impossible to print such pages over more than 1
> site:
>
> <html>
> <body>
> <table>
> <tr>
> <td>
> <span style="height:100%">
> <table height="100%">
> <tr>
> <td style="font-size: 200px">
>
> Test<br>Test<br>Test<br>Test<br>Test<br>Test
> </td>
> </tr>
> </table>
> </span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> IE Version: 7.0.5730.11
> OS Version: Win XP DE SP2, Build 2600
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow
> this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/communities...plorer.general



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 09-19-2007, 03:56 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

Fontsize:200px?

Tools>Internet Options - General tab, Accessibility button, check "Ignore
font sizes specified on web pages"

Another instance of 'what you code is not what the user sees'. The User is
King! Avoid using hardwired absolute font sizing. All browsers will default
to use the users preferences.

Regards.
"René Ziller" <René Ziller@discussions.microsoft.com> wrote in message
news:2F595469-E4E8-4CC0-9BCE-2B2B64D17AA6@microsoft.com...
> There's a Problem in Printing Pages from IE7 with nested Tables and Spans
> and
> 100% height. This Sample Page let the IE (in Page preview) endless growing
> up
> the Pages count so its impossible to print such pages over more than 1
> site:
>
> <html>
> <body>
> <table>
> <tr>
> <td>
> <span style="height:100%">
> <table height="100%">
> <tr>
> <td style="font-size: 200px">
>
> Test<br>Test<br>Test<br>Test<br>Test<br>Test
> </td>
> </tr>
> </table>
> </span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> IE Version: 7.0.5730.11
> OS Version: Win XP DE SP2, Build 2600
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow
> this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/communities...plorer.general



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 09-19-2007, 03:56 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

Fontsize:200px?

Tools>Internet Options - General tab, Accessibility button, check "Ignore
font sizes specified on web pages"

Another instance of 'what you code is not what the user sees'. The User is
King! Avoid using hardwired absolute font sizing. All browsers will default
to use the users preferences.

Regards.
"René Ziller" <René Ziller@discussions.microsoft.com> wrote in message
news:2F595469-E4E8-4CC0-9BCE-2B2B64D17AA6@microsoft.com...
> There's a Problem in Printing Pages from IE7 with nested Tables and Spans
> and
> 100% height. This Sample Page let the IE (in Page preview) endless growing
> up
> the Pages count so its impossible to print such pages over more than 1
> site:
>
> <html>
> <body>
> <table>
> <tr>
> <td>
> <span style="height:100%">
> <table height="100%">
> <tr>
> <td style="font-size: 200px">
>
> Test<br>Test<br>Test<br>Test<br>Test<br>Test
> </td>
> </tr>
> </table>
> </span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> IE Version: 7.0.5730.11
> OS Version: Win XP DE SP2, Build 2600
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow
> this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/communities...plorer.general



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 09-19-2007, 03:56 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

Fontsize:200px?

Tools>Internet Options - General tab, Accessibility button, check "Ignore
font sizes specified on web pages"

Another instance of 'what you code is not what the user sees'. The User is
King! Avoid using hardwired absolute font sizing. All browsers will default
to use the users preferences.

Regards.
"René Ziller" <René Ziller@discussions.microsoft.com> wrote in message
news:2F595469-E4E8-4CC0-9BCE-2B2B64D17AA6@microsoft.com...
> There's a Problem in Printing Pages from IE7 with nested Tables and Spans
> and
> 100% height. This Sample Page let the IE (in Page preview) endless growing
> up
> the Pages count so its impossible to print such pages over more than 1
> site:
>
> <html>
> <body>
> <table>
> <tr>
> <td>
> <span style="height:100%">
> <table height="100%">
> <tr>
> <td style="font-size: 200px">
>
> Test<br>Test<br>Test<br>Test<br>Test<br>Test
> </td>
> </tr>
> </table>
> </span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> IE Version: 7.0.5730.11
> OS Version: Win XP DE SP2, Build 2600
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow
> this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/communities...plorer.general



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 09-19-2007, 03:57 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

Fontsize:200px?

Tools>Internet Options - General tab, Accessibility button, check "Ignore
font sizes specified on web pages"

Another instance of 'what you code is not what the user sees'. The User is
King! Avoid using hardwired absolute font sizing. All browsers will default
to use the users preferences.

Regards.
"René Ziller" <René Ziller@discussions.microsoft.com> wrote in message
news:2F595469-E4E8-4CC0-9BCE-2B2B64D17AA6@microsoft.com...
> There's a Problem in Printing Pages from IE7 with nested Tables and Spans
> and
> 100% height. This Sample Page let the IE (in Page preview) endless growing
> up
> the Pages count so its impossible to print such pages over more than 1
> site:
>
> <html>
> <body>
> <table>
> <tr>
> <td>
> <span style="height:100%">
> <table height="100%">
> <tr>
> <td style="font-size: 200px">
>
> Test<br>Test<br>Test<br>Test<br>Test<br>Test
> </td>
> </tr>
> </table>
> </span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> IE Version: 7.0.5730.11
> OS Version: Win XP DE SP2, Build 2600
>
> ----------------
> This post is a suggestion for Microsoft, and Microsoft responds to the
> suggestions with the most votes. To vote for this suggestion, click the "I
> Agree" button in the message pane. If you do not see the button, follow
> this
> link to open the suggestion in the Microsoft Web-based Newsreader and then
> click "I Agree" in the message pane.
>
> http://www.microsoft.com/communities...plorer.general



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 09-19-2007, 03:57 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rob, thank you for answer, but this is _not_ the problem.
I used 200px to take 6 lines resolving in 2 pages. I also can write a sample
HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
single page, the problem doesn't occur.
The problem takes place on variuos complex sites. They can not reduced to
one single page with this option to be printable with IE.
I don't use normally fixed font-size but xx-large is not huge enough :-).

Without sample HTML-Code:
How get I IE to print out multiple Page Sites with nested Span and Table
with 100% height? (you can use the sample code to reproduce the problem, to
fix the Code to get it on 1 page isn't a solution, right?)

"Rob ^_^" wrote:

> Hi Rene,
>
> Fontsize:200px?
>
> Tools>Internet Options - General tab, Accessibility button, check "Ignore
> font sizes specified on web pages"
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 09-19-2007, 03:57 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rob, thank you for answer, but this is _not_ the problem.
I used 200px to take 6 lines resolving in 2 pages. I also can write a sample
HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
single page, the problem doesn't occur.
The problem takes place on variuos complex sites. They can not reduced to
one single page with this option to be printable with IE.
I don't use normally fixed font-size but xx-large is not huge enough :-).

Without sample HTML-Code:
How get I IE to print out multiple Page Sites with nested Span and Table
with 100% height? (you can use the sample code to reproduce the problem, to
fix the Code to get it on 1 page isn't a solution, right?)

"Rob ^_^" wrote:

> Hi Rene,
>
> Fontsize:200px?
>
> Tools>Internet Options - General tab, Accessibility button, check "Ignore
> font sizes specified on web pages"
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 09-19-2007, 03:57 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rob, thank you for answer, but this is _not_ the problem.
I used 200px to take 6 lines resolving in 2 pages. I also can write a sample
HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
single page, the problem doesn't occur.
The problem takes place on variuos complex sites. They can not reduced to
one single page with this option to be printable with IE.
I don't use normally fixed font-size but xx-large is not huge enough :-).

Without sample HTML-Code:
How get I IE to print out multiple Page Sites with nested Span and Table
with 100% height? (you can use the sample code to reproduce the problem, to
fix the Code to get it on 1 page isn't a solution, right?)

"Rob ^_^" wrote:

> Hi Rene,
>
> Fontsize:200px?
>
> Tools>Internet Options - General tab, Accessibility button, check "Ignore
> font sizes specified on web pages"
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 09-19-2007, 03:57 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rob, thank you for answer, but this is _not_ the problem.
I used 200px to take 6 lines resolving in 2 pages. I also can write a sample
HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
single page, the problem doesn't occur.
The problem takes place on variuos complex sites. They can not reduced to
one single page with this option to be printable with IE.
I don't use normally fixed font-size but xx-large is not huge enough :-).

Without sample HTML-Code:
How get I IE to print out multiple Page Sites with nested Span and Table
with 100% height? (you can use the sample code to reproduce the problem, to
fix the Code to get it on 1 page isn't a solution, right?)

"Rob ^_^" wrote:

> Hi Rene,
>
> Fontsize:200px?
>
> Tools>Internet Options - General tab, Accessibility button, check "Ignore
> font sizes specified on web pages"
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 09-19-2007, 03:57 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

I beg to disagree with you. What is displayed in the browser is not
necessarily what is expected to be printed on a device. The keyword is
devicecontext. The browser has a different devicecontext to that of a
printer (height,width,scale, dpi).

Here is the link to the msdn documentation about placing pagebreaks in a web
document.
http://msdn2.microsoft.com/en-us/library/ms530842.aspx

You cannot rely on the assumption that what is displayed in the browser will
be faithfully reproduced when the web page is rendered in the printing
device.

Intuatively, I agree, that you would think that a table height of 100% would
fill the entire height of the device in which it is rendered. A web browser
has a height property, a printer is deterministic depending upon the
selection of a paper size.

I would normally use a table with 3 rows to make a full browser display, the
header and footer are of a fixed height. The centre row is of an
undetermined height (*), in which I would place another table to position
content within the variable height row.

In all the web applications that I have worked on there has been options to
display a printer friendly version of the web page (with selection lists
converted to strings, floating divs converted to absolute positioning etc)

You will see from the msdn link given above that there is a page break
attribute that applies to the Paragraph tag.

If your goal is to provide a multi-page report to users that will look just
the same as it is rendered in the browser then I think you will find this an
impossibility. What a user sees may not necessarily compare to what you have
designed in your html IDE. I would suggest that you provide the option to
display your page in a printer friendly version that has all formating and
positioning removed and page breaks set with classed paragraph tags.

I am not being overly defensive of IE. I just think that there are limits to
what we as developers can expect from the software environment that we
develope in.

Quite often you will start out designing something and follow a path that
you will think will work, only to find half way down the track that it all
does not work. More often than not you will find that someone else has
already walked that path and has found another solution that works.

My whole argument is that what we design is not necessarily what our users
will see (or print). I have not addressed the problem of page size selection
in the Print Preview dialog. A user can choose their paper size and
orientation in the Print Preview dialog, thier screen height and width is
fixed, the browser height and width is variable. I urge you to move on with
this and to find a solution that works.

Regards.


"René Ziller" <RenZiller@discussions.microsoft.com> wrote in message
news:BBDFE4EA-D239-463A-ADD3-045A1D83CAEF@microsoft.com...
> Hi Rob, thank you for answer, but this is _not_ the problem.
> I used 200px to take 6 lines resolving in 2 pages. I also can write a
> sample
> HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
> single page, the problem doesn't occur.
> The problem takes place on variuos complex sites. They can not reduced to
> one single page with this option to be printable with IE.
> I don't use normally fixed font-size but xx-large is not huge enough :-).
>
> Without sample HTML-Code:
> How get I IE to print out multiple Page Sites with nested Span and Table
> with 100% height? (you can use the sample code to reproduce the problem,
> to
> fix the Code to get it on 1 page isn't a solution, right?)
>
> "Rob ^_^" wrote:
>
>> Hi Rene,
>>
>> Fontsize:200px?
>>
>> Tools>Internet Options - General tab, Accessibility button, check "Ignore
>> font sizes specified on web pages"
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 09-19-2007, 03:57 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

I beg to disagree with you. What is displayed in the browser is not
necessarily what is expected to be printed on a device. The keyword is
devicecontext. The browser has a different devicecontext to that of a
printer (height,width,scale, dpi).

Here is the link to the msdn documentation about placing pagebreaks in a web
document.
http://msdn2.microsoft.com/en-us/library/ms530842.aspx

You cannot rely on the assumption that what is displayed in the browser will
be faithfully reproduced when the web page is rendered in the printing
device.

Intuatively, I agree, that you would think that a table height of 100% would
fill the entire height of the device in which it is rendered. A web browser
has a height property, a printer is deterministic depending upon the
selection of a paper size.

I would normally use a table with 3 rows to make a full browser display, the
header and footer are of a fixed height. The centre row is of an
undetermined height (*), in which I would place another table to position
content within the variable height row.

In all the web applications that I have worked on there has been options to
display a printer friendly version of the web page (with selection lists
converted to strings, floating divs converted to absolute positioning etc)

You will see from the msdn link given above that there is a page break
attribute that applies to the Paragraph tag.

If your goal is to provide a multi-page report to users that will look just
the same as it is rendered in the browser then I think you will find this an
impossibility. What a user sees may not necessarily compare to what you have
designed in your html IDE. I would suggest that you provide the option to
display your page in a printer friendly version that has all formating and
positioning removed and page breaks set with classed paragraph tags.

I am not being overly defensive of IE. I just think that there are limits to
what we as developers can expect from the software environment that we
develope in.

Quite often you will start out designing something and follow a path that
you will think will work, only to find half way down the track that it all
does not work. More often than not you will find that someone else has
already walked that path and has found another solution that works.

My whole argument is that what we design is not necessarily what our users
will see (or print). I have not addressed the problem of page size selection
in the Print Preview dialog. A user can choose their paper size and
orientation in the Print Preview dialog, thier screen height and width is
fixed, the browser height and width is variable. I urge you to move on with
this and to find a solution that works.

Regards.


"René Ziller" <RenZiller@discussions.microsoft.com> wrote in message
news:BBDFE4EA-D239-463A-ADD3-045A1D83CAEF@microsoft.com...
> Hi Rob, thank you for answer, but this is _not_ the problem.
> I used 200px to take 6 lines resolving in 2 pages. I also can write a
> sample
> HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
> single page, the problem doesn't occur.
> The problem takes place on variuos complex sites. They can not reduced to
> one single page with this option to be printable with IE.
> I don't use normally fixed font-size but xx-large is not huge enough :-).
>
> Without sample HTML-Code:
> How get I IE to print out multiple Page Sites with nested Span and Table
> with 100% height? (you can use the sample code to reproduce the problem,
> to
> fix the Code to get it on 1 page isn't a solution, right?)
>
> "Rob ^_^" wrote:
>
>> Hi Rene,
>>
>> Fontsize:200px?
>>
>> Tools>Internet Options - General tab, Accessibility button, check "Ignore
>> font sizes specified on web pages"
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 09-19-2007, 03:57 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

I beg to disagree with you. What is displayed in the browser is not
necessarily what is expected to be printed on a device. The keyword is
devicecontext. The browser has a different devicecontext to that of a
printer (height,width,scale, dpi).

Here is the link to the msdn documentation about placing pagebreaks in a web
document.
http://msdn2.microsoft.com/en-us/library/ms530842.aspx

You cannot rely on the assumption that what is displayed in the browser will
be faithfully reproduced when the web page is rendered in the printing
device.

Intuatively, I agree, that you would think that a table height of 100% would
fill the entire height of the device in which it is rendered. A web browser
has a height property, a printer is deterministic depending upon the
selection of a paper size.

I would normally use a table with 3 rows to make a full browser display, the
header and footer are of a fixed height. The centre row is of an
undetermined height (*), in which I would place another table to position
content within the variable height row.

In all the web applications that I have worked on there has been options to
display a printer friendly version of the web page (with selection lists
converted to strings, floating divs converted to absolute positioning etc)

You will see from the msdn link given above that there is a page break
attribute that applies to the Paragraph tag.

If your goal is to provide a multi-page report to users that will look just
the same as it is rendered in the browser then I think you will find this an
impossibility. What a user sees may not necessarily compare to what you have
designed in your html IDE. I would suggest that you provide the option to
display your page in a printer friendly version that has all formating and
positioning removed and page breaks set with classed paragraph tags.

I am not being overly defensive of IE. I just think that there are limits to
what we as developers can expect from the software environment that we
develope in.

Quite often you will start out designing something and follow a path that
you will think will work, only to find half way down the track that it all
does not work. More often than not you will find that someone else has
already walked that path and has found another solution that works.

My whole argument is that what we design is not necessarily what our users
will see (or print). I have not addressed the problem of page size selection
in the Print Preview dialog. A user can choose their paper size and
orientation in the Print Preview dialog, thier screen height and width is
fixed, the browser height and width is variable. I urge you to move on with
this and to find a solution that works.

Regards.


"René Ziller" <RenZiller@discussions.microsoft.com> wrote in message
news:BBDFE4EA-D239-463A-ADD3-045A1D83CAEF@microsoft.com...
> Hi Rob, thank you for answer, but this is _not_ the problem.
> I used 200px to take 6 lines resolving in 2 pages. I also can write a
> sample
> HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
> single page, the problem doesn't occur.
> The problem takes place on variuos complex sites. They can not reduced to
> one single page with this option to be printable with IE.
> I don't use normally fixed font-size but xx-large is not huge enough :-).
>
> Without sample HTML-Code:
> How get I IE to print out multiple Page Sites with nested Span and Table
> with 100% height? (you can use the sample code to reproduce the problem,
> to
> fix the Code to get it on 1 page isn't a solution, right?)
>
> "Rob ^_^" wrote:
>
>> Hi Rene,
>>
>> Fontsize:200px?
>>
>> Tools>Internet Options - General tab, Accessibility button, check "Ignore
>> font sizes specified on web pages"
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 09-19-2007, 03:57 AM
Rob ^_^
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rene,

I beg to disagree with you. What is displayed in the browser is not
necessarily what is expected to be printed on a device. The keyword is
devicecontext. The browser has a different devicecontext to that of a
printer (height,width,scale, dpi).

Here is the link to the msdn documentation about placing pagebreaks in a web
document.
http://msdn2.microsoft.com/en-us/library/ms530842.aspx

You cannot rely on the assumption that what is displayed in the browser will
be faithfully reproduced when the web page is rendered in the printing
device.

Intuatively, I agree, that you would think that a table height of 100% would
fill the entire height of the device in which it is rendered. A web browser
has a height property, a printer is deterministic depending upon the
selection of a paper size.

I would normally use a table with 3 rows to make a full browser display, the
header and footer are of a fixed height. The centre row is of an
undetermined height (*), in which I would place another table to position
content within the variable height row.

In all the web applications that I have worked on there has been options to
display a printer friendly version of the web page (with selection lists
converted to strings, floating divs converted to absolute positioning etc)

You will see from the msdn link given above that there is a page break
attribute that applies to the Paragraph tag.

If your goal is to provide a multi-page report to users that will look just
the same as it is rendered in the browser then I think you will find this an
impossibility. What a user sees may not necessarily compare to what you have
designed in your html IDE. I would suggest that you provide the option to
display your page in a printer friendly version that has all formating and
positioning removed and page breaks set with classed paragraph tags.

I am not being overly defensive of IE. I just think that there are limits to
what we as developers can expect from the software environment that we
develope in.

Quite often you will start out designing something and follow a path that
you will think will work, only to find half way down the track that it all
does not work. More often than not you will find that someone else has
already walked that path and has found another solution that works.

My whole argument is that what we design is not necessarily what our users
will see (or print). I have not addressed the problem of page size selection
in the Print Preview dialog. A user can choose their paper size and
orientation in the Print Preview dialog, thier screen height and width is
fixed, the browser height and width is variable. I urge you to move on with
this and to find a solution that works.

Regards.


"René Ziller" <RenZiller@discussions.microsoft.com> wrote in message
news:BBDFE4EA-D239-463A-ADD3-045A1D83CAEF@microsoft.com...
> Hi Rob, thank you for answer, but this is _not_ the problem.
> I used 200px to take 6 lines resolving in 2 pages. I also can write a
> sample
> HTML-Code with 100 lines to get 2 pages. If IE7 take the content on one
> single page, the problem doesn't occur.
> The problem takes place on variuos complex sites. They can not reduced to
> one single page with this option to be printable with IE.
> I don't use normally fixed font-size but xx-large is not huge enough :-).
>
> Without sample HTML-Code:
> How get I IE to print out multiple Page Sites with nested Span and Table
> with 100% height? (you can use the sample code to reproduce the problem,
> to
> fix the Code to get it on 1 page isn't a solution, right?)
>
> "Rob ^_^" wrote:
>
>> Hi Rene,
>>
>> Fontsize:200px?
>>
>> Tools>Internet Options - General tab, Accessibility button, check "Ignore
>> font sizes specified on web pages"
>>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 09-19-2007, 03:58 AM
René Ziller
Newsgroup Contributor
 
Posts: n/a
Re: Printing Problems in IE7 with Span and Table

Hi Rob,

thanks for the hint with pagebreak, ist works, so i reduced the sample code
(fine :) the originally problem always exist:
I cannot printout (or preview) this htmlcode as a website in my IE7
environment.

All i see in preview is a preview dialog with endless increasing total
pagecount.
Printout never ends (I stop it after a while without result)

Can you successful preview the following code in your IE7?
* if Yes => my Environment is corrupt
* If No => IE7 has a problem with this very simple page that it shouldn't have

and, by the way, in this sample code are no special Print-related elements,
except the pagebreak.


<html>
<body>
<table>
<tr>
<td>
<span style="height:100%">
<table height="100%">
<tr>
<td>
Test
<br style="page-break-after: always ">
Test
</td>
</tr>
</table>
</span>
</td>
</tr>
</table>
</body>
</html>

thanks for advice

Regards

René

"Rob ^_^" wrote:

> Hi Rene,
>
> I beg to disagree with you. What is displayed in the browser is not
> necessarily what is expected to be printed on a device. The keyword is
> devicecontext. The browser has a different devicecontext to that of a
> printer (height,width,scale, dpi).
>
> Here is the link to the msdn documentation about placing pagebreaks in a web
> document.
> http://msdn2.microsoft.com/en-us/library/ms530842.aspx
>
> You cannot rely on the assumption that what is displayed in the browser will
> be faithfully reproduced when the web page is rendered in the printing
> device.
>
> Intuatively, I agree, that you would think that a table height of 100% would
> fill the entire height of the device in which it is rendered. A web browser
> has a height property, a printer is deterministic depending upon the
> selection of a paper size.
>
> I would normally use a table with 3 rows to make a full browser display, the
> header and footer are of a fixed height. The centre row is of an
> undetermined height (*), in which I would place another table to position
> content within the variable height row.
>
> In all the web applications that I have worked on there has been options to
> display a printer friendly version of the web page (with selection lists
> converted to strings, floating divs converted to absolute positioning etc)
>
> You will see from the msdn link given above that there is a page break
> attribute that applies to the Paragraph tag.
>
> If your goal is to provide a multi-page report to users that will look just
> the same as it is rendered in the browser then I think you will find this an
> impossibility. What a user sees may not necessarily compare to what you have
> designed in your html IDE. I would suggest that you provide the option to
> display your page in a printer friendly version that has all formating and
> positioning removed and page breaks set with classed paragraph tags.
>
> I am not being overly defensive of IE. I just think that there are limits to
> what we as developers can expect from the software environment that we
> develope in.
>
> Quite often you will start out designing something and follow a path that
> you will think will work, only to find half way down the track that it all
> does not work. More often than not you will find that someone else has
> already walked that path and has found another solution that works.
>
> My whole argument is that what we design is not necessarily what our users
> will see (or print). I have not addressed the problem of page size selection
> in the Print Preview dialog. A user can choose their paper size and
> orientation in the Print Preview dialog, thier screen height and width is
> fixed, the browser height and width is variable. I urge you to move on with
> this and to find a solution that works.
>
> Regards.
>

....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Problems in IE7 with Span and Table René Ziller Internet Explorer 0 09-19-2007 03:55 AM
span video across monitors chapm4 Windows Media 3 02-04-2007 10:43 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 11:26 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0