i am trying to place page breaks when printing a dynamic table that is part of an email body generated within an .Net 4.0 framework C# console program:
<table>
<div style='page-break-before: always'>
<tr><td> header data </td></tr> </div>
<tr><td> data </td></tr>
'' multiple rows
</table>
when the program runs i can see the data and format but it shows 4 times the number of pages within Outlook print preview, so by example where there should be 20 pages max there are 80+!!
i've run it within the debugger and the email body is okay but i cannot find out why the number of pages are off when viewing within Outlook and the print preview. i believe the div tag maybe the issue. i took it out and shows ok but no page breaks. i have to use inline css since using the usual 'style' tag doesn't work within the .Net email class.
also note that i tried using the 'style' tag on the row for the page-break-before but it didn't work.