does not work Windows 8 / 8.1 Windows 8 / 8.1 (The problem originally appeared in 8, so I upgraded to 8....">

<br style= "page-break-after: always"> does not work Windows 8 / 8.1

Windows 8 / 8.1 (The problem originally appeared in 8, so I upgraded to 8.1, but the problem persists)

IE 11.0.2

I am using a product called eTools. It is used to create and manage character sheets for Dungeons and Dragons games. The information is stored in a database file, but the software uses XLS style sheets to generate an HTML file to create a character sheet. A script then opens the HTML file in IE and initiates the Print command. Then the user selects the printer and clicks OK.

The problem is that the following line is ignored:

<br style="page-break-after: always">

I am sure this line is a criminal because if I save the HTML file and print it on a PC with an older version of Windows and IE, it works fine.

I tested various printers, including the Adobe PDF printer, and all of them do not work on Windows 8 / 8.1, but work on an older version.

The product works fine in Windows XP, Vista and 7, but it has problems with Windows 8 and 8.1 x64.

I am wondering if there is a parameter in Windows 8 / 8.1 or IE11 that I missed?


Edit:

I just took the HTML file created in Windows 8.1 and IE11 and tried to print it in Windows Vista with IE9. It is well printed.

This makes me think that there is something in IE11 that makes it ignore page break tags.

Can anyone help me with this?

+4
3

http://www.javascriptkit.com/dhtmltutors/pagebreak.shtml <br />:

, <BR> <HR>.

:

<DIV style="page-break-after:always"></DIV>

div ; , - .

+3

ie11. .. . <br>, <div> or <p>. , .

:

<div style="page-break-after: always;"></div>
<div></div>

:

<div style="page-break-after: always;"></div>

, , .

+2

page-break-after does not work with the tag. Try p or br tag

<p style="page-break-before: always">&nbsp;</p>
0
source

All Articles